From: Vadim Girlin Date: Mon, 23 Jan 2012 11:58:31 +0000 (+0400) Subject: r600g: fix interpolation with clipvertex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a84cc4ebcc99fb029d5f855e8afa11fab09266a;p=mesa.git r600g: fix interpolation with clipvertex Signed-off-by: Vadim Girlin Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index aac1cd3afb2..46a9723bec2 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -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++) {