summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-27 09:32:50 -0600
committerBrian <[email protected]>2007-10-27 09:32:50 -0600
commit6ada4e3a69476ed086955fe4060b894559e1eb95 (patch)
tree90f876131c359de27766c21bcf38fb0106d54519 /src/mesa/pipe
parentf6a73c3f2815c4c84563c186bba6c8e67bb42ae9 (diff)
Comments about texture instructions and the src regs
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
index f577f004d71..d98f46cc0db 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
@@ -1996,15 +1996,15 @@ exec_instruction(
case TGSI_OPCODE_TEX:
/* simple texture lookup */
- /* src[0] is the texcoord */
- /* src[1] is the sampler unit */
+ /* src[0] = texcoord */
+ /* src[1] = sampler unit */
exec_tex(mach, inst, FALSE);
break;
case TGSI_OPCODE_TXB:
/* Texture lookup with lod bias */
- /* src[0] is the texcoord (src[0].w = load bias) */
- /* src[1] is the sampler unit */
+ /* src[0] = texcoord (src[0].w = load bias) */
+ /* src[1] = sampler unit */
exec_tex(mach, inst, TRUE);
break;
@@ -2013,9 +2013,17 @@ exec_instruction(
/* src[0] = texcoord */
/* src[1] = d[strq]/dx */
/* src[2] = d[strq]/dy */
+ /* src[3] = sampler unit */
assert (0);
break;
+ case TGSI_OPCODE_TXL:
+ /* Texture lookup with explit LOD */
+ /* src[0] = texcoord (src[0].w = load bias) */
+ /* src[1] = sampler unit */
+ exec_tex(mach, inst, TRUE);
+ break;
+
case TGSI_OPCODE_UP2H:
assert (0);
break;
@@ -2157,10 +2165,6 @@ exec_instruction(
}
break;
- case TGSI_OPCODE_TXL:
- assert (0);
- break;
-
case TGSI_OPCODE_IF:
/* push CondMask */
assert(mach->CondStackTop < TGSI_EXEC_MAX_COND_NESTING);