[dxbc] Use signed int for component index in OpImageGather

Workaround for a bug in Nvidia's shader compiler, which currently
expects the component index to be signed rather than unsigned.
This commit is contained in:
Philip Rebohle 2018-03-08 07:50:37 +01:00
parent 85d28f7328
commit c3cf65c015
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -2870,7 +2870,7 @@ namespace dxvk {
case DxbcOpcode::Gather4Po: {
result.id = m_module.opImageGather(
getVectorTypeId(result.type), sampledImageId, coord.id,
m_module.constu32(samplerReg.swizzle[0]),
m_module.consti32(samplerReg.swizzle[0]),
imageOperands);
} break;