From 09bd49814ea34d755bf958c35babf4530a7bf48d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 10 Jan 2025 00:58:26 +0900 Subject: [PATCH] [qfcc] Correct spirv right shift types Spir-v is pretty slack with the exact types of the operants to the right-shift instructions so no need to care about the type for shift so long as it has the correct number of components. --- tools/qfcc/source/target_spirv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/target_spirv.c b/tools/qfcc/source/target_spirv.c index 3daca95b2..b35fdd233 100644 --- a/tools/qfcc/source/target_spirv.c +++ b/tools/qfcc/source/target_spirv.c @@ -985,8 +985,8 @@ static spvop_t spv_ops[] = { {"not", SpvOpLogicalNot, SPV_INT, 0 }, {"shl", SpvOpShiftLeftLogical, SPV_INT, SPV_INT }, - {"shr", SpvOpShiftRightLogical, SPV_UINT, SPV_UINT }, - {"shr", SpvOpShiftRightArithmetic, SPV_SINT, SPV_SINT }, + {"shr", SpvOpShiftRightLogical, SPV_UINT, SPV_INT }, + {"shr", SpvOpShiftRightArithmetic, SPV_SINT, SPV_INT }, {"dot", SpvOpDot, SPV_FLOAT, SPV_FLOAT }, {"scale", SpvOpVectorTimesScalar, SPV_FLOAT, SPV_FLOAT },