r600g: fix magic 0x1 ->flat shade ena
authorDave Airlie <airlied@redhat.com>
Thu, 14 Oct 2010 01:15:37 +0000 (11:15 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 25 Oct 2010 23:47:02 +0000 (09:47 +1000)
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index e3f11da7d8c0535c1cb5ad0523466da361ce662d..722234850676ac6464670eedf101a8ad1a830b43 100644 (file)
@@ -247,7 +247,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,
        rstate->id = R600_PIPE_STATE_RASTERIZER;
        if (state->flatshade_first)
                prov_vtx = 0;
-       tmp = 0x00000001;
+       tmp = S_0286D4_FLAT_SHADE_ENA(1);
        if (state->sprite_coord_enable) {
                tmp |= S_0286D4_PNT_SPRITE_ENA(1) |
                        S_0286D4_PNT_SPRITE_OVRD_X(2) |
index 1c80075245d8ba0cb0e9860bbf025b28743c0640..b3e0d4932178341e0c479f3225c33a03f75205a6 100644 (file)
@@ -434,7 +434,7 @@ static void *r600_create_rs_state(struct pipe_context *ctx,
        rstate->id = R600_PIPE_STATE_RASTERIZER;
        if (state->flatshade_first)
                prov_vtx = 0;
-       tmp = 0x00000001;
+       tmp = S_0286D4_FLAT_SHADE_ENA(1);
        if (state->sprite_coord_enable) {
                tmp |= S_0286D4_PNT_SPRITE_ENA(1) |
                        S_0286D4_PNT_SPRITE_OVRD_X(2) |