Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Fix warnings in JitRegCache #646

Merged
merged 1 commit into from Jul 21, 2014
Merged

Conversation

lioncash
Copy link
Member

Literally cascading warnings fixed.

@@ -24,7 +26,7 @@ void RegCache::Start()
}
for (size_t i = 0; i < regs.size(); i++)
{
regs[i].location = GetDefaultLocation(i);
regs[i].location = GetDefaultLocation((int)i);

This comment was marked as off-topic.

@Sonicadvance1
Copy link
Contributor

!!LOOKS GOOD TO ME!!

@Parlane
Copy link
Member

Parlane commented Jul 21, 2014

LGTM

Parlane added a commit that referenced this pull request Jul 21, 2014
Core: Fix warnings in JitRegCache
@Parlane Parlane merged commit 38d5197 into dolphin-emu:master Jul 21, 2014
K0bin added a commit to K0bin/dolphin that referenced this pull request Oct 29, 2022
…uffer

BindFramebuffer depends on the pipeline which might not be set yet.
That's why the framebuffer dirty flag exists in the first place.
I assume BindFramebuffer was called directly here, in order to handle
the texture state transitions necessary for DiscardResource.
The state is tracked anyway, so we can just issue those transitions there
too and defer binding the actual framebuffer.

Fixes an issue in Zelda Twilight Princess with EFB depth peeks.
Dolphin would bind a frame buffer which doesn't have an integer format
descriptor for the color target before binding the new pipeline.
So it would accidentally use the 0 descriptor.

Debug layer error:
D3D12 ERROR: ID3D12CommandList::OMSetRenderTargets:
Specified CPU descriptor handle ptr=0x0000000000000000 does not refer to
a location in a descriptor heap. pRenderTargetDescriptors[0] is the issue.
[ EXECUTION ERROR dolphin-emu#646: INVALID_DESCRIPTOR_HANDLE]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants