mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nvfx: add LRP in vertprog
glsl generates these.
This commit is contained in:
parent
b385a31452
commit
70fe9fd007
1 changed files with 5 additions and 0 deletions
|
|
@ -515,6 +515,11 @@ nvfx_vertprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_vpc *vpc,
|
|||
case TGSI_OPCODE_LOG:
|
||||
arith(vpc, SCA, LOG, dst, mask, none, none, src[0]);
|
||||
break;
|
||||
case TGSI_OPCODE_LRP:
|
||||
tmp = temp(vpc);
|
||||
arith(vpc, VEC, MAD, tmp, mask, neg(src[0]), src[2], src[2]);
|
||||
arith(vpc, VEC, MAD, dst, mask, src[0], src[1], tmp);
|
||||
break;
|
||||
case TGSI_OPCODE_MAD:
|
||||
arith(vpc, VEC, MAD, dst, mask, src[0], src[1], src[2]);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue