From: Dave Airlie Date: Thu, 14 Oct 2010 04:27:34 +0000 (+1000) Subject: r600g: select linear interpolate if tgsi input requests it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68014c8d19559576d368e158932278df05fe659b;p=mesa.git r600g: select linear interpolate if tgsi input requests it --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index d6f73cb7432..141adcc54be 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -117,6 +117,9 @@ static void r600_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shade tmp = S_028644_SEMANTIC(r600_find_vs_semantic_index(&rctx->vs_shader->shader, rshader, i)); if (rshader->input[i].centroid) tmp |= S_028644_SEL_CENTROID(1); + if (rshader->input[i].interpolate == TGSI_INTERPOLATE_LINEAR) + tmp |= S_028644_SEL_LINEAR(1); + if (rshader->input[i].name == TGSI_SEMANTIC_POSITION) pos_index = i; if (rshader->input[i].name == TGSI_SEMANTIC_COLOR ||