summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-09-11 21:11:03 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-11 21:11:03 +0200
commit95555ed03e95f7472ad1f6c4b43e0aa7aaa13f93 (patch)
tree1ae4b5c5b31d54957d0951a0bf04f5fb0f673f49 /src/gallium/drivers/nvfx
parentc34225974bfa3e2922bfca18a420eeef4d9802b0 (diff)
nv30: fix breakage due to 10 texcoord support on nv40
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_vertprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index 6914e730c5..6ddfca1443 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -878,7 +878,7 @@ nvfx_vertprog_prepare(struct nvfx_context* nvfx, struct nvfx_vpc *vpc)
/* hope 0xf is (0, 0, 0, 1) initialized; otherwise, we are _probably_ not required to do this */
memset(vpc->vp->generic_to_fp_input, 0x0f, sizeof(vpc->vp->generic_to_fp_input));
- for(int i = 0; i < 10; ++i) {
+ for(int i = 0; i < num_texcoords; ++i) {
if(sem_layout[i] == 0xff)
continue;
//printf("vp: GENERIC[%i] to fpreg %i\n", sem_layout[i], NVFX_FP_OP_INPUT_SRC_TC(0) + i);
@@ -886,7 +886,7 @@ nvfx_vertprog_prepare(struct nvfx_context* nvfx, struct nvfx_vpc *vpc)
}
vpc->vp->sprite_fp_input = -1;
- for(int i = 0; i < 10; ++i)
+ for(int i = 0; i < num_texcoords; ++i)
{
if(sem_layout[i] == 0xff)
{