radv: disable complicated point clipping against user clip planes
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Sep 2018 10:30:07 +0000 (12:30 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 Oct 2018 08:16:25 +0000 (10:16 +0200)
I don't think this is required by Vulkan too.

Ported from RadeonSI (AMDVLK doesn't set it either).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c

index b49e6d2b2e48b7fd852c15835e96bb335a959d02..94688997b43351ad728b4439cc58fbd23717689e 100644 (file)
@@ -2708,7 +2708,6 @@ radv_pipeline_generate_raster_state(struct radeon_cmdbuf *cs,
        uint32_t pa_sc_conservative_rast = 0;
 
        radeon_set_context_reg(cs, R_028810_PA_CL_CLIP_CNTL,
-                              S_028810_PS_UCP_MODE(3) |
                               S_028810_DX_CLIP_SPACE_DEF(1) | // vulkan uses DX conventions.
                               S_028810_ZCLIP_NEAR_DISABLE(vkraster->depthClampEnable ? 1 : 0) |
                               S_028810_ZCLIP_FAR_DISABLE(vkraster->depthClampEnable ? 1 : 0) |