mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 13:54:16 +01:00
[dxbc] Fix layer count in resinfo instruction
For non-layered types, this instruction is supposed to return 0, not 1.
This commit is contained in:
parent
f71f527b4d
commit
0bf97993c6
@ -4558,6 +4558,16 @@ namespace dxvk {
|
||||
getVectorTypeId(result.type),
|
||||
m_module.opLoad(info.typeId, info.varId));
|
||||
}
|
||||
|
||||
if (info.image.array && !info.image.layered) {
|
||||
const uint32_t index = result.type.ccount - 1;
|
||||
const uint32_t zero = m_module.constu32(0);
|
||||
|
||||
result.id = m_module.opCompositeInsert(
|
||||
getVectorTypeId(result.type),
|
||||
zero, result.id, 1, &index);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -4613,7 +4623,6 @@ namespace dxvk {
|
||||
}
|
||||
}();
|
||||
|
||||
|
||||
coordVector.id = m_module.opCompositeInsert(
|
||||
getVectorTypeId(coordVector.type),
|
||||
zero, coordVector.id, 1, &index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user