radv: Disable depth clamping even without EXT_depth_range_unrestricted.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 26 Jan 2019 02:18:05 +0000 (03:18 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 20 Feb 2019 23:24:31 +0000 (23:24 +0000)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_pipeline.c

index 810bbd98752615bc86fd8547bf5249157f0ba2ab..f0a5fef3923fc366b0e86b25757e599cbd02548f 100644 (file)
@@ -2657,8 +2657,7 @@ radv_pipeline_generate_depth_stencil_state(struct radeon_cmdbuf *ctx_cs,
        db_render_override |= S_02800C_FORCE_HIS_ENABLE0(V_02800C_FORCE_DISABLE) |
                              S_02800C_FORCE_HIS_ENABLE1(V_02800C_FORCE_DISABLE);
 
-       if (pipeline->device->enabled_extensions.EXT_depth_range_unrestricted &&
-           !pCreateInfo->pRasterizationState->depthClampEnable &&
+       if (!pCreateInfo->pRasterizationState->depthClampEnable &&
            ps->info.info.ps.writes_z) {
                /* From VK_EXT_depth_range_unrestricted spec:
                 *