[PATCH vkd3d 01/11] vkd3d-shader/hlsl: Report failure when encountering matrix instructions.

Matteo Bruni mbruni at codeweavers.com
Tue Apr 5 05:33:03 CDT 2022


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
The immediate reason for this patch is to avoid returning a broken
shader in test_reflection() in Wine's d3dcompiler:hlsl_d3d11 tests.

 libs/vkd3d-shader/hlsl_sm4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d-shader/hlsl_sm4.c b/libs/vkd3d-shader/hlsl_sm4.c
index 94765f9e..9b6fa371 100644
--- a/libs/vkd3d-shader/hlsl_sm4.c
+++ b/libs/vkd3d-shader/hlsl_sm4.c
@@ -2067,7 +2067,7 @@ static void write_sm4_block(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *
         {
             if (instr->data_type->type == HLSL_CLASS_MATRIX)
             {
-                FIXME("Matrix operations need to be lowered.\n");
+                hlsl_fixme(ctx, &instr->loc, "Matrix operations need to be lowered.");
                 break;
             }
             else if (instr->data_type->type == HLSL_CLASS_OBJECT)
-- 
2.34.1




More information about the wine-devel mailing list