Browse Source

nv50: properly set the PRIMITIVE_ID enable flag when it is a gp input.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
tags/mesa-10.1-rc1
Ilia Mirkin 11 years ago
parent
commit
7c624148a6
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/gallium/drivers/nouveau/nv50/nv50_program.c

+ 3
- 0
src/gallium/drivers/nouveau/nv50/nv50_program.c View File

@@ -52,6 +52,9 @@ nv50_vertprog_assign_slots(struct nv50_ir_prog_info *info)
for (c = 0; c < 4; ++c)
if (info->in[i].mask & (1 << c))
info->in[i].slot[c] = n++;

if (info->in[i].sn == TGSI_SEMANTIC_PRIMID)
prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID;
}
prog->in_nr = info->numInputs;


Loading…
Cancel
Save