diff options
author | Ilia Mirkin <[email protected]> | 2014-01-15 03:49:57 -0500 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2014-01-27 16:40:42 +0100 |
commit | c4adbd5a579a0b5952674106c1a4e0420209b321 (patch) | |
tree | f0dda9177b985e11c4b5d54a63e8a68b62405d0c /src/gallium/drivers/nouveau/nv50/nv50_program.c | |
parent | 70a07ac35269c037adb2b724df28357b7f87efb1 (diff) |
nv50: enable primitive id generation when it is an FP input without GP
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_program.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.c b/src/gallium/drivers/nouveau/nv50/nv50_program.c index 82e1b8a2232..27d899a4beb 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_program.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_program.c @@ -168,6 +168,10 @@ nv50_fragprog_assign_slots(struct nv50_ir_prog_info *info) if (info->in[i].sn == TGSI_SEMANTIC_COLOR) prog->vp.bfc[info->in[i].si] = j; + else if (info->in[i].sn == TGSI_SEMANTIC_PRIMID) { + prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; + prog->gp.primid = j; + } prog->in[j].id = i; prog->in[j].mask = info->in[i].mask; |