mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
i965/vs: When MOVing to produce ABS, strip negate of the operand.
We were returning the negative absolute value, instead of the absolute
value. Fixes glsl-vs-abs-neg.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 9351ef7a44)
This commit is contained in:
parent
6c6894eac7
commit
9acbde11f5
1 changed files with 1 additions and 0 deletions
|
|
@ -1719,6 +1719,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
|
|||
|
||||
switch (inst->Opcode) {
|
||||
case OPCODE_ABS:
|
||||
args[0].negate = GL_FALSE;
|
||||
brw_MOV(p, dst, brw_abs(args[0]));
|
||||
break;
|
||||
case OPCODE_ADD:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue