aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler/radeon_opcodes.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-08-27 07:38:15 +0200
committerMarek Olšák <[email protected]>2012-08-27 14:35:18 +0200
commit7f0fcf17c342dcb788c2182b20973c48806ee498 (patch)
treea41fbe9647bca0a778b1e2a7e8bdb9f1bb4b6ad7 /src/gallium/drivers/r300/compiler/radeon_opcodes.h
parentf402acdbe244e5de9b2b616e0a908f5d1416ce89 (diff)
r300g: implement TRUNC correctly
This fixes some integer division tests.
Diffstat (limited to 'src/gallium/drivers/r300/compiler/radeon_opcodes.h')
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_opcodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/compiler/radeon_opcodes.h b/src/gallium/drivers/r300/compiler/radeon_opcodes.h
index 9c4b456168a..0a70901a82f 100644
--- a/src/gallium/drivers/r300/compiler/radeon_opcodes.h
+++ b/src/gallium/drivers/r300/compiler/radeon_opcodes.h
@@ -175,6 +175,9 @@ typedef enum {
/** vec4 instruction: dst.c = src0.c */
RC_OPCODE_SWZ,
+ /** vec4 instruction: dst.c = (abs(src0.c) - fract(abs(src0.c))) * sgn(src0.c) */
+ RC_OPCODE_TRUNC,
+
/** special instruction, see ARB_fragment_program */
RC_OPCODE_XPD,