r600g: implement pipe_rasterizer_state::clip_halfz
authorMarek Olšák <marek.olsak@amd.com>
Wed, 22 Oct 2014 08:59:49 +0000 (10:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Oct 2014 19:04:58 +0000 (21:04 +0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 78c1b680accbe08c67887e66172770b7d30ffb9d..f74dd918b0868e030b3f4ed870b13221f1f5bc85 100644 (file)
@@ -476,6 +476,7 @@ static void *evergreen_create_rs_state(struct pipe_context *ctx,
                                S_028A0C_REPEAT_COUNT(state->line_stipple_factor) : 0;
        rs->pa_cl_clip_cntl =
                S_028810_PS_UCP_MODE(3) |
+               S_028810_DX_CLIP_SPACE_DEF(state->clip_halfz) |
                S_028810_ZCLIP_NEAR_DISABLE(!state->depth_clip) |
                S_028810_ZCLIP_FAR_DISABLE(!state->depth_clip) |
                S_028810_DX_LINEAR_ATTR_CLIP_ENA(1) |
index 1f933efca9ea8e6a2a521ddb3419b55efc89d8d6..8dc25da8089e3be5b02653e9ca7de4b640a073e7 100644 (file)
@@ -461,6 +461,7 @@ static void *r600_create_rs_state(struct pipe_context *ctx,
                                S_028A0C_REPEAT_COUNT(state->line_stipple_factor) : 0;
        rs->pa_cl_clip_cntl =
                S_028810_PS_UCP_MODE(3) |
+               S_028810_DX_CLIP_SPACE_DEF(state->clip_halfz) |
                S_028810_ZCLIP_NEAR_DISABLE(!state->depth_clip) |
                S_028810_ZCLIP_FAR_DISABLE(!state->depth_clip) |
                S_028810_DX_LINEAR_ATTR_CLIP_ENA(1);