mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-03 07:29:14 +01:00
[dxbc] Fixed TGSM size with dcl_tgsm_raw
https://msdn.microsoft.com/en-us/library/windows/desktop/hh446929(v=vs.85).aspx
This commit is contained in:
parent
b7a964e15e
commit
3efd437310
@ -994,7 +994,7 @@ namespace dxvk {
|
|||||||
void DxbcCompiler::emitDclThreadGroupSharedMemory(const DxbcShaderInstruction& ins) {
|
void DxbcCompiler::emitDclThreadGroupSharedMemory(const DxbcShaderInstruction& ins) {
|
||||||
// dcl_tgsm_raw takes two arguments:
|
// dcl_tgsm_raw takes two arguments:
|
||||||
// (dst0) The resource register ID
|
// (dst0) The resource register ID
|
||||||
// (imm0) Block size, in DWORDs
|
// (imm0) Block size, in bytes
|
||||||
// dcl_tgsm_structured takes three arguments:
|
// dcl_tgsm_structured takes three arguments:
|
||||||
// (dst0) The resource register ID
|
// (dst0) The resource register ID
|
||||||
// (imm0) Structure stride, in bytes
|
// (imm0) Structure stride, in bytes
|
||||||
@ -1014,7 +1014,7 @@ namespace dxvk {
|
|||||||
varInfo.type.ccount = 1;
|
varInfo.type.ccount = 1;
|
||||||
varInfo.type.alength = isStructured
|
varInfo.type.alength = isStructured
|
||||||
? elementCount * elementStride / 4
|
? elementCount * elementStride / 4
|
||||||
: elementCount;
|
: elementCount / 4;
|
||||||
varInfo.sclass = spv::StorageClassWorkgroup;
|
varInfo.sclass = spv::StorageClassWorkgroup;
|
||||||
|
|
||||||
m_gRegs[regId].type = isStructured
|
m_gRegs[regId].type = isStructured
|
||||||
|
Loading…
x
Reference in New Issue
Block a user