From c3cf65c0150d03e53d8af3fbe41ce8bc96f911fd Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 8 Mar 2018 07:50:37 +0100 Subject: [PATCH] [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. --- src/dxbc/dxbc_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index cf7599ce..515cf171 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -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;