mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
radv: ignore DYNAMIC_STENCIL_OP if stencil test isn't enabled
Like compare/write masks and reference. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16783>
This commit is contained in:
parent
18985e8030
commit
c869a5d550
1 changed files with 1 additions and 1 deletions
|
|
@ -1378,7 +1378,7 @@ radv_pipeline_needed_dynamic_state(const struct radv_graphics_pipeline *pipeline
|
|||
if (!info->ds.stencil_test_enable &&
|
||||
!(pipeline->dynamic_states & RADV_DYNAMIC_STENCIL_TEST_ENABLE))
|
||||
states &= ~(RADV_DYNAMIC_STENCIL_COMPARE_MASK | RADV_DYNAMIC_STENCIL_WRITE_MASK |
|
||||
RADV_DYNAMIC_STENCIL_REFERENCE);
|
||||
RADV_DYNAMIC_STENCIL_REFERENCE | RADV_DYNAMIC_STENCIL_OP);
|
||||
|
||||
if (!vk_find_struct_const(pCreateInfo->pNext, PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT))
|
||||
states &= ~RADV_DYNAMIC_DISCARD_RECTANGLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue