[D3D12] Analysis: Display fetch constant contents if type is wrong
This commit is contained in:
parent
7bc79cbd01
commit
90f700c785
|
@ -1198,7 +1198,9 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
|
|||
uint32_t vfetch_constant_index =
|
||||
XE_GPU_REG_SHADER_CONSTANT_FETCH_00_0 + vfetch_index * 2;
|
||||
if ((regs[vfetch_constant_index].u32 & 0x3) != 3) {
|
||||
XELOGGPU("Vertex fetch type is not 3!");
|
||||
XELOGW("Vertex fetch type is not 3 (fetch constant %u is %.8X %.8X)!",
|
||||
vfetch_index, regs[vfetch_constant_index].u32,
|
||||
regs[vfetch_constant_index + 1].u32);
|
||||
return false;
|
||||
}
|
||||
shared_memory_->RequestRange(
|
||||
|
|
|
@ -976,7 +976,11 @@ void TextureCache::BindingInfoFromFetchConstant(
|
|||
}
|
||||
|
||||
if (fetch.type != 2) {
|
||||
XELOGGPU("Texture fetch type is not 2 - ignoring!");
|
||||
XELOGW(
|
||||
"Texture fetch type is not 2 - ignoring (fetch constant is %.8X %.8X "
|
||||
"%.8X %.8X %.8X %.8X)!",
|
||||
fetch.dword_0, fetch.dword_1, fetch.dword_2, fetch.dword_3,
|
||||
fetch.dword_4, fetch.dword_5);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue