diff options
author | Marek Olšák <[email protected]> | 2012-08-27 07:38:15 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-27 14:35:18 +0200 |
commit | 7f0fcf17c342dcb788c2182b20973c48806ee498 (patch) | |
tree | a41fbe9647bca0a778b1e2a7e8bdb9f1bb4b6ad7 /src/gallium/drivers/r300/compiler/radeon_opcodes.c | |
parent | f402acdbe244e5de9b2b616e0a908f5d1416ce89 (diff) |
r300g: implement TRUNC correctly
This fixes some integer division tests.
Diffstat (limited to 'src/gallium/drivers/r300/compiler/radeon_opcodes.c')
-rw-r--r-- | src/gallium/drivers/r300/compiler/radeon_opcodes.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/compiler/radeon_opcodes.c b/src/gallium/drivers/r300/compiler/radeon_opcodes.c index 9bcb3c990ad..916baa23608 100644 --- a/src/gallium/drivers/r300/compiler/radeon_opcodes.c +++ b/src/gallium/drivers/r300/compiler/radeon_opcodes.c @@ -343,6 +343,13 @@ struct rc_opcode_info rc_opcodes[MAX_RC_OPCODE] = { .IsComponentwise = 1 }, { + .Opcode = RC_OPCODE_TRUNC, + .Name = "TRUNC", + .NumSrcRegs = 1, + .HasDstReg = 1, + .IsComponentwise = 1 + }, + { .Opcode = RC_OPCODE_XPD, .Name = "XPD", .NumSrcRegs = 2, |