mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
anv: Initialize depth_bounds_test_enable when not explicitly set
This was causing uninitialized value to end up propagated to the 3DSTATE_DEPTH_BOUNDS packet, leading to asserts on packet building due to the value being greater than 1. Fixes:939ddccb7a("anv: Add support for depth bounds testing.") Reviewed-by: Plamena Manolova <plamena.manolova@intel.com> (cherry picked from commit0aaf47f7cd)
This commit is contained in:
parent
4fbe772b23
commit
f393c92345
1 changed files with 1 additions and 2 deletions
|
|
@ -1005,6 +1005,7 @@ emit_ds_state(struct anv_pipeline *pipeline,
|
|||
pipeline->stencil_test_enable = false;
|
||||
pipeline->writes_depth = false;
|
||||
pipeline->depth_test_enable = false;
|
||||
pipeline->depth_bounds_test_enable = false;
|
||||
memset(depth_stencil_dw, 0, sizeof(depth_stencil_dw));
|
||||
return;
|
||||
}
|
||||
|
|
@ -1023,8 +1024,6 @@ emit_ds_state(struct anv_pipeline *pipeline,
|
|||
pipeline->depth_test_enable = info.depthTestEnable;
|
||||
pipeline->depth_bounds_test_enable = info.depthBoundsTestEnable;
|
||||
|
||||
/* VkBool32 depthBoundsTestEnable; // optional (depth_bounds_test) */
|
||||
|
||||
#if GEN_GEN <= 7
|
||||
struct GENX(DEPTH_STENCIL_STATE) depth_stencil = {
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue