aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-02-28 00:34:53 +0100
committerMarek Olšák <[email protected]>2015-03-16 12:54:18 +0100
commit9da9c8e3f4f8f06c32efa8344b0a995d34c3b592 (patch)
treebe411e6598721bdd7788341bafb92132a92212c1 /src/gallium
parent216543ea547dd0572d9f2f0364f7a239a5aeafe1 (diff)
tgsi: handle bitwise opcodes in tgsi_opcode_infer_type (v2)
v2: set the same types as the destination type in tgsi_exec Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c b/src/gallium/auxiliary/tgsi/tgsi_info.c
index 11947097e9f..3cab86efbfe 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_info.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_info.c
@@ -341,6 +341,12 @@ tgsi_opcode_infer_type( uint opcode )
case TGSI_OPCODE_USNE:
case TGSI_OPCODE_SVIEWINFO:
case TGSI_OPCODE_UMUL_HI:
+ case TGSI_OPCODE_UBFE:
+ case TGSI_OPCODE_BFI:
+ case TGSI_OPCODE_BREV:
+ case TGSI_OPCODE_POPC:
+ case TGSI_OPCODE_LSB:
+ case TGSI_OPCODE_UMSB:
return TGSI_TYPE_UNSIGNED;
case TGSI_OPCODE_ARL:
case TGSI_OPCODE_ARR:
@@ -362,6 +368,8 @@ tgsi_opcode_infer_type( uint opcode )
case TGSI_OPCODE_IABS:
case TGSI_OPCODE_ISSG:
case TGSI_OPCODE_IMUL_HI:
+ case TGSI_OPCODE_IBFE:
+ case TGSI_OPCODE_IMSB:
return TGSI_TYPE_SIGNED;
default:
return TGSI_TYPE_FLOAT;