mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
anv: Account for dynamic stencil write disables in the PMA fix
In6ce8592836we started looking at the dynamic stencil state and disabling stencil writes when the stencil mask is zero. Unfortunately, we never updated the PMA fix code accordingly so 3DSTATE_WM_DEPTH_STENCIL and the PMA fix were getting out-of-sync causing hangs. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109203 Fixes:6ce8592836"anv: Disable stencil writes when both write..." Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commit6a441151c2)
This commit is contained in:
parent
43682f0c6f
commit
3a27a5b989
1 changed files with 2 additions and 0 deletions
|
|
@ -355,6 +355,8 @@ want_stencil_pma_fix(struct anv_cmd_buffer *cmd_buffer)
|
|||
*/
|
||||
const bool stc_write_en =
|
||||
(ds_iview->image->aspects & VK_IMAGE_ASPECT_STENCIL_BIT) &&
|
||||
(cmd_buffer->state.gfx.dynamic.stencil_write_mask.front ||
|
||||
cmd_buffer->state.gfx.dynamic.stencil_write_mask.back) &&
|
||||
pipeline->writes_stencil;
|
||||
|
||||
/* STC_TEST_EN && 3DSTATE_PS_EXTRA::PixelShaderComputesStencil */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue