aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-01-02 22:25:31 -0500
committerIlia Mirkin <[email protected]>2016-01-29 21:22:47 -0500
commitc3083c70823d8f4bfdabcf38f98dfebeff0a2b2b (patch)
treec6a8a683e4d27b075c68a44b9c7ccfa9f850becb /src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
parentabe427ebd250377b21204dad07be6a207d30e9a0 (diff)
nv50/ir: add support for BUFFER accesses
This largely leaves the existing image logic alone. When image support is added this will have to be harmonized somehow. Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
index 6ad9dd31681..75e5fd843c2 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
@@ -393,6 +393,9 @@ ImmediateValue::isInteger(const int i) const
case TYPE_S32:
case TYPE_U32:
return reg.data.s32 == i; // as if ...
+ case TYPE_S64:
+ case TYPE_U64:
+ return reg.data.s64 == i; // as if ...
case TYPE_F32:
return reg.data.f32 == static_cast<float>(i);
case TYPE_F64: