r600g: set full register mask for PA_CL_CLIP_CNTL
authorMarek Olšák <maraeo@gmail.com>
Sun, 29 Jan 2012 05:04:14 +0000 (06:04 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 31 Jan 2012 01:18:03 +0000 (02:18 +0100)
We don't set the other bits anywhere else.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 09e029fbab39f18259de19a8e4640d229d1806d1..da095227c77e27c167392790039349c630d05ab2 100644 (file)
@@ -984,9 +984,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,
                        S_028810_PS_UCP_MODE(3) | S_028810_ZCLIP_NEAR_DISABLE(!state->depth_clip) |
                        S_028810_ZCLIP_FAR_DISABLE(!state->depth_clip) |
                        S_028810_DX_LINEAR_ATTR_CLIP_ENA(1),
-                       ~(C_028810_PS_UCP_MODE & C_028810_ZCLIP_NEAR_DISABLE &
-                       C_028810_ZCLIP_FAR_DISABLE &
-                       C_028810_DX_LINEAR_ATTR_CLIP_ENA), NULL, 0);
+                       0xFFFFFFFF, NULL, 0);
        return rstate;
 }
 
index 25af1e379ebb85758e4a66ea08845aa83f24f8c9..5d65c86798edb711021320e857b854744e352c68 100644 (file)
@@ -1030,9 +1030,7 @@ static void *r600_create_rs_state(struct pipe_context *ctx,
                        S_028810_PS_UCP_MODE(3) | S_028810_ZCLIP_NEAR_DISABLE(!state->depth_clip) |
                        S_028810_ZCLIP_FAR_DISABLE(!state->depth_clip) |
                        S_028810_DX_LINEAR_ATTR_CLIP_ENA(1),
-                       ~(C_028810_PS_UCP_MODE & C_028810_ZCLIP_NEAR_DISABLE &
-                       C_028810_ZCLIP_FAR_DISABLE &
-                       C_028810_DX_LINEAR_ATTR_CLIP_ENA), NULL, 0);
+                       0xFFFFFFFF, NULL, 0);
        return rstate;
 }