r600g: fix interpolation with clipvertex
authorVadim Girlin <vadimgirlin@gmail.com>
Mon, 23 Jan 2012 11:58:31 +0000 (15:58 +0400)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Jan 2012 08:24:58 +0000 (08:24 +0000)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c

index aac1cd3afb2643225cae2a131378108de3cd9181..46a9723bec2e154920081c3375e867eeec60323a 100644 (file)
@@ -979,6 +979,9 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi
                shader->output[noutput].gpr = ctx.temp_reg+1;
                noutput++;
 
+               /* reset spi_sid for clipvertex output to avoid confusing spi */
+               shader->output[ctx.cv_output].spi_sid = 0;
+
                shader->clip_dist_write = 0xFF;
 
                for (i = 0; i < 8; i++) {