tu: Fix disable_fs state update condition

tu_calc_disable_fs depends on FS, so it should be updated on
TU_CMD_DIRTY_FS.

Fixes: be481e6615 ("tu: Disable FS in certain cases even if FS is not empty")

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34791>
(cherry picked from commit 2797f42451ced49cdca1836350bf058c121e97ef)
This commit is contained in:
Danylo Piliaiev
2025-05-01 19:00:07 +02:00
committed by Eric Engestrom
parent 963b9fc2f3
commit 024ccb1c4b
2 changed files with 2 additions and 2 deletions

View File

@@ -594,7 +594,7 @@
"description": "tu: Fix disable_fs state update condition",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "be481e66159316b7147d82be3d87b0b63c9e624d",
"notes": null

View File

@@ -3955,7 +3955,7 @@ tu_emit_draw_state(struct tu_cmd_buffer *cmd)
if (!cmd->state.pipeline_disable_fs &&
(EMIT_STATE(disable_fs) ||
(cmd->state.dirty & TU_CMD_DIRTY_SUBPASS))) {
(cmd->state.dirty & (TU_CMD_DIRTY_SUBPASS | TU_CMD_DIRTY_FS)))) {
bool disable_fs = tu_calc_disable_fs(
&cmd->vk.dynamic_graphics_state.cb, &cmd->state.vk_rp,
cmd->vk.dynamic_graphics_state.ms.alpha_to_coverage_enable,