[Mesa-dev] [PATCH 1/3] tgsi: fix wrong reg used for unit for TGSI_OPCODE_TXF
sroland at vmware.com
sroland at vmware.com
Fri Mar 8 11:18:32 PST 2013
From: Roland Scheidegger <sroland at vmware.com>
---
src/gallium/auxiliary/tgsi/tgsi_exec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 6a74ef3..9945d42 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -2139,9 +2139,9 @@ exec_txd(struct tgsi_exec_machine *mach,
static void
exec_txf(struct tgsi_exec_machine *mach,
- const struct tgsi_full_instruction *inst)
+ const struct tgsi_full_instruction *inst)
{
- const uint unit = inst->Src[2].Register.Index;
+ const uint unit = inst->Src[1].Register.Index;
union tgsi_exec_channel r[4];
uint chan;
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
--
1.7.9.5
More information about the mesa-dev
mailing list