projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77dc4c1
)
r600g: fix glsl-fs-abs-neg
author
Dave Airlie
<airlied@redhat.com>
Sun, 24 Apr 2011 01:04:46 +0000
(11:04 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 24 Apr 2011 01:04:46 +0000
(11:04 +1000)
the hw does neg after abs, so don't neg the source in the ABS instruction case.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_shader.c
b/src/gallium/drivers/r600/r600_shader.c
index 188cea0ff882f6ab66ed728fbd29dbd78bc8566e..2f901be28fa7d972769332831e241c77b9e8e136 100644
(file)
--- a/
src/gallium/drivers/r600/r600_shader.c
+++ b/
src/gallium/drivers/r600/r600_shader.c
@@
-911,6
+911,8
@@
static int tgsi_op2_s(struct r600_shader_ctx *ctx, int swap)
break;
case TGSI_OPCODE_ABS:
alu.src[0].abs = 1;
+ if (alu.src[0].neg)
+ alu.src[0].neg = 0;
break;
default:
break;