From 546bd6f462211ed531aa2778047b1fc31397683f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 5 Aug 2021 22:56:03 +0200 Subject: [PATCH] [dxbc] Fix swizzles in lod instruction Fixes #1764. --- src/dxbc/dxbc_compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dxbc/dxbc_compiler.cpp b/src/dxbc/dxbc_compiler.cpp index 98dbd9788..b670740b0 100644 --- a/src/dxbc/dxbc_compiler.cpp +++ b/src/dxbc/dxbc_compiler.cpp @@ -3249,6 +3249,7 @@ namespace dxvk { getVectorTypeId(result.type), resultIds.size(), resultIds.data()); + result = emitRegisterSwizzle(result, ins.src[1].swizzle, ins.dst[0].mask); emitRegisterStore(ins.dst[0], result); }