prog_execute: Implement OPCODE_TXL

Fixes bugzilla #29628
This commit is contained in:
Ian Romanick
2010-08-17 17:40:20 -07:00
parent 81137623e5
commit 0eb2026c87
+16
View File
@@ -1679,6 +1679,22 @@ _mesa_execute_program(GLcontext * ctx,
store_vector4(inst, machine, color);
}
break;
case OPCODE_TXL:
/* Texel lookup with explicit LOD */
{
GLfloat texcoord[4], color[4], lod;
fetch_vector4(&inst->SrcReg[0], machine, texcoord);
/* texcoord[3] is the LOD */
lod = texcoord[3];
machine->FetchTexelLod(ctx, texcoord, lod,
machine->Samplers[inst->TexSrcUnit], color);
store_vector4(inst, machine, color);
}
break;
case OPCODE_TXP: /* GL_ARB_fragment_program only */
/* Texture lookup w/ projective divide */
{