diff options
author | Christoph Bumiller <[email protected]> | 2011-10-17 23:02:16 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-10-21 23:00:39 +0200 |
commit | 0e4e0ca6df52ddecd1bb2fe9a427549d1a82b9f9 (patch) | |
tree | 1fe3b90d51d5e39a3ddfe76e7b45ef17461a726b /src/gallium/drivers/nvc0 | |
parent | 974102c7c27e45b0fb661e9374b2c51c9108922a (diff) |
nv50/ir: add wrap mode for shift operations
D3D1x specifies that only the low 5 bit of the shift are used.
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r-- | src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp index 6bcbd625600..13f5d2f7c72 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp @@ -665,8 +665,8 @@ CodeEmitterNVC0::emitShift(const Instruction *i) emitForm_A(i, HEX64(60000000, 00000003)); } - if (0) - code[0] |= 1 << 9; // clamp shift amount + if (i->subOp == NV50_IR_SUBOP_SHIFT_WRAP) + code[0] |= 1 << 9; } void |