From: Luca Barbieri Date: Thu, 25 Feb 2010 01:52:43 +0000 (+0100) Subject: nvfx: add LRP in vertprog X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=70fe9fd0075faf1fe731401fba9f38e17d7d062b;p=mesa.git nvfx: add LRP in vertprog glsl generates these. --- diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c index 71c76a6842c..b405fd9c821 100644 --- a/src/gallium/drivers/nvfx/nvfx_vertprog.c +++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c @@ -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;