mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
radv: Don't use V_370_PFP or V_028A90_PS_DONE on compute queues
The compute queue doesn't support these things. This change doesn't fix any known issues, but better to be safe. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37121>
This commit is contained in:
parent
8447a4bfca
commit
78efa4157a
1 changed files with 2 additions and 1 deletions
|
|
@ -14403,7 +14403,7 @@ write_event(struct radv_cmd_buffer *cmd_buffer, struct radv_event *event, VkPipe
|
|||
|
||||
radv_cp_dma_wait_for_stages(cmd_buffer, stageMask);
|
||||
|
||||
if (!(stageMask & ~top_of_pipe_flags)) {
|
||||
if (!(stageMask & ~top_of_pipe_flags) && cmd_buffer->qf != RADV_QUEUE_COMPUTE) {
|
||||
/* Just need to sync the PFP engine. */
|
||||
radv_write_data(cmd_buffer, V_370_PFP, va, 1, &value, false);
|
||||
} else if (!(stageMask & ~post_index_fetch_flags)) {
|
||||
|
|
@ -14415,6 +14415,7 @@ write_event(struct radv_cmd_buffer *cmd_buffer, struct radv_event *event, VkPipe
|
|||
if (!(stageMask & ~post_ps_flags)) {
|
||||
/* Sync previous fragment shaders. */
|
||||
event_type = V_028A90_PS_DONE;
|
||||
assert(cmd_buffer->qf == RADV_QUEUE_GENERAL);
|
||||
} else if (!(stageMask & ~post_cs_flags)) {
|
||||
/* Sync previous compute shaders. */
|
||||
event_type = V_028A90_CS_DONE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue