summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorPierre Moreau <[email protected]>2016-05-19 20:13:50 +0200
committerIlia Mirkin <[email protected]>2016-05-30 16:12:12 -0400
commitae708795309d7e6e590a0232bdac93188a96d78f (patch)
tree1b7c713223a89c210e891f81ab6d1a136ef0cf48 /src/gallium/drivers
parent9074470d7b7c9816a02ef6ae512b36df3ae770d8 (diff)
nv50/ir: Add missing handling of U64/S64 in inlines
Signed-off-by: Pierre Moreau <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h
index 4c5de2e82c7..4cb53ab42ed 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_inlines.h
@@ -126,7 +126,7 @@ static inline bool isFloatType(DataType ty)
static inline bool isSignedIntType(DataType ty)
{
- return (ty == TYPE_S8 || ty == TYPE_S16 || ty == TYPE_S32);
+ return (ty == TYPE_S8 || ty == TYPE_S16 || ty == TYPE_S32 || ty == TYPE_S64);
}
static inline bool isSignedType(DataType ty)
@@ -136,6 +136,7 @@ static inline bool isSignedType(DataType ty)
case TYPE_U8:
case TYPE_U16:
case TYPE_U32:
+ case TYPE_U64:
case TYPE_B96:
case TYPE_B128:
return false;
@@ -147,6 +148,7 @@ static inline bool isSignedType(DataType ty)
static inline DataType intTypeToSigned(DataType ty)
{
switch (ty) {
+ case TYPE_U64: return TYPE_S64;
case TYPE_U32: return TYPE_S32;
case TYPE_U16: return TYPE_S16;
case TYPE_U8: return TYPE_S8;