radv: fix flushing non-coherent images inside secondaries on GFX9+

Fixes
dEQP-VK.draw.dynamic_rendering.complete_secondary_cmd_buff.multi_draw.mosaic.*
on VEGA10 (related to the use of HTILE).

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21549>
(cherry picked from commit 6750a9094f)
This commit is contained in:
Samuel Pitoiset 2023-02-27 10:45:08 +01:00 committed by Dylan Baker
parent 11c2063e68
commit fe2f5e6b76
2 changed files with 3 additions and 1 deletions

View file

@ -76,7 +76,7 @@
"description": "radv: fix flushing non-coherent images inside secondaries on GFX9+",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -7149,6 +7149,8 @@ radv_CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCou
primary->state.last_vrs_rates_sgpr_idx = secondary->state.last_vrs_rates_sgpr_idx;
primary->state.last_pa_sc_binner_cntl_0 = secondary->state.last_pa_sc_binner_cntl_0;
primary->state.rb_noncoherent_dirty |= secondary->state.rb_noncoherent_dirty;
}
/* After executing commands from secondary buffers we have to dirty