r600g: on evergreen the centroid isn't set in this register.
authorDave Airlie <airlied@redhat.com>
Tue, 28 Sep 2010 05:05:11 +0000 (15:05 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 28 Sep 2010 09:02:46 +0000 (19:02 +1000)
src/gallium/drivers/r600/eg_hw_states.c
src/gallium/drivers/r600/evergreen_state.c

index 889eedadef55b82dd76a6f8487654f373340280f..ebbc9c3f37513edfe75e80ab5655064ed349e773 100644 (file)
@@ -942,7 +942,6 @@ static int eg_ps_shader(struct r600_context *rctx, struct r600_context_state *rp
        radeon_state_init(state, rscreen->rw, R600_STATE_SHADER, 0, R600_SHADER_PS);
        for (i = 0; i < rshader->ninput; i++) {
                tmp = S_028644_SEMANTIC(r600_find_vs_semantic_index(rctx, rshader, i));
-               tmp |= S_028644_SEL_CENTROID(1);
                if (rshader->input[i].name == TGSI_SEMANTIC_POSITION)
                        have_pos = TRUE;
                if (rshader->input[i].name == TGSI_SEMANTIC_COLOR ||
index 71c4a4b9d85a03b7102cf044ff572c8574eb42d2..de1b3b2b5430b39fd636abc20b447bcfe1624121 100644 (file)
@@ -1514,7 +1514,6 @@ void evergreen_pipe_shader_ps(struct pipe_context *ctx, struct r600_pipe_shader
 
        for (i = 0; i < rshader->ninput; i++) {
                tmp = S_028644_SEMANTIC(r600_find_vs_semantic_index2(&rctx->vs_shader->shader, rshader, i));
-               tmp |= S_028644_SEL_CENTROID(1);
                if (rshader->input[i].name == TGSI_SEMANTIC_POSITION)
                        have_pos = TRUE;
                if (rshader->input[i].name == TGSI_SEMANTIC_COLOR ||