From 56ef501e3aa4b12f41c0520bbc5fa920b0efa0f8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 6 Apr 2022 11:50:13 +0300 Subject: [PATCH] blorp: disable depth bounds Otherwise the driver setting interacts with it. Signed-off-by: Lionel Landwerlin Fixes: 939ddccb7a54 ("anv: Add support for depth bounds testing.") Fixes: 1df871f8ff75 ("iris: Add support for depth bounds testing.") Reviewed-by: Kenneth Graunke Part-of: --- src/intel/blorp/blorp_genX_exec.h | 8 ++++++++ src/intel/ci/anv-tgl-fails.txt | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 365e7575129..7085b51e51f 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1243,6 +1243,14 @@ blorp_emit_depth_stencil_state(struct blorp_batch *batch, } #endif +#if GFX_VER >= 12 + blorp_emit(batch, GENX(3DSTATE_DEPTH_BOUNDS), db) { + db.DepthBoundsTestEnable = false; + db.DepthBoundsTestMinValue = 0.0; + db.DepthBoundsTestMaxValue = 1.0; + } +#endif + return offset; } diff --git a/src/intel/ci/anv-tgl-fails.txt b/src/intel/ci/anv-tgl-fails.txt index 7f80809d044..a5d4f77868d 100644 --- a/src/intel/ci/anv-tgl-fails.txt +++ b/src/intel/ci/anv-tgl-fails.txt @@ -531,7 +531,6 @@ dEQP-VK.drm_format_modifiers.export_import.r16_sfloat,Fail dEQP-VK.texture.shadow.2d_array.linear_mipmap_nearest.greater_or_equal_d32_sfloat,Fail # 1.3.1.1 uprev: -dEQP-VK.pipeline.extended_dynamic_state.between_pipelines.stencil_state_face_back_xt_inc_wrap_clear_254_ref_253_depthfail,Fail dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_5_1.samples_2.d24_unorm_s8_uint_separate_layouts.depth_zero_stencil_zero_testing_stencil_samplemask,Crash dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_5_1.samples_2.d24_unorm_s8_uint_separate_layouts.depth_zero_stencil_zero_unused_resolve_testing_stencil_samplemask,Crash dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_5_1.samples_2.d32_sfloat_s8_uint_separate_layouts.depth_zero_stencil_max_testing_stencil_samplemask,Crash