aco: Add storage class for Task Shader payload.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15161>
This commit is contained in:
Timur Kristóf
2022-02-25 09:22:04 +01:00
parent 962b2fe214
commit cd0dd5d6b7
3 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -613,7 +613,8 @@ perform_hazard_query(hazard_query* query, Instruction* instr, bool upwards)
/* Don't move memory accesses to before control barriers. I don't think
* this is necessary for the Vulkan memory model, but it might be for GLSL450. */
unsigned control_classes =
storage_buffer | storage_atomic_counter | storage_image | storage_shared;
storage_buffer | storage_atomic_counter | storage_image | storage_shared |
storage_task_payload;
if (first->has_control_barrier &&
((second->access_atomic | second->access_relaxed) & control_classes))
return hazard_fail_barrier;