projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
394803b
)
r300g: implement TRUNC as floor
author
Marek Olšák
<maraeo@gmail.com>
Sun, 18 Apr 2010 22:26:49 +0000
(
00:26
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 18 Apr 2010 22:36:20 +0000
(
00:36
+0200)
src/gallium/drivers/r300/r300_tgsi_to_rc.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_tgsi_to_rc.c
b/src/gallium/drivers/r300/r300_tgsi_to_rc.c
index fcc0f9a3c024cc2d8096a01c53be1b5f6148e33f..f6428ed760f4df4cf5dd901d6f63990c96160bed 100644
(file)
--- a/
src/gallium/drivers/r300/r300_tgsi_to_rc.c
+++ b/
src/gallium/drivers/r300/r300_tgsi_to_rc.c
@@
-118,7
+118,7
@@
static unsigned translate_opcode(unsigned opcode)
case TGSI_OPCODE_CEIL: return RC_OPCODE_CEIL;
/* case TGSI_OPCODE_I2F: return RC_OPCODE_I2F; */
/* case TGSI_OPCODE_NOT: return RC_OPCODE_NOT; */
- /* case TGSI_OPCODE_TRUNC: return RC_OPCODE_TRUNC; */
+ case TGSI_OPCODE_TRUNC: return RC_OPCODE_FLR;
/* case TGSI_OPCODE_SHL: return RC_OPCODE_SHL; */
/* case TGSI_OPCODE_ISHR: return RC_OPCODE_SHR; */
/* case TGSI_OPCODE_AND: return RC_OPCODE_AND; */