brw: implement ACCESS_COHERENT on Gfx12.5+

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36595>
This commit is contained in:
Lionel Landwerlin
2025-08-06 08:17:14 +00:00
committed by Marge Bot
parent 2e51b50db2
commit 4c65aef155
3 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -7101,11 +7101,14 @@ brw_from_nir_emit_memory_access(nir_to_brw_state &ntb,
(nir_intrinsic_access(instr) & ACCESS_INCLUDE_HELPERS);
const bool volatile_access = nir_intrinsic_has_access(instr) &&
(nir_intrinsic_access(instr) & ACCESS_VOLATILE);
const bool coherent_access = nir_intrinsic_has_access(instr) &&
(nir_intrinsic_access(instr) & ACCESS_COHERENT);
const unsigned align =
nir_intrinsic_has_align(instr) ? nir_intrinsic_align(instr) : 0;
const unsigned logical_flags =
(include_helpers ? MEMORY_FLAG_INCLUDE_HELPERS : 0) |
(volatile_access ? MEMORY_FLAG_VOLATILE_ACCESS : 0);
(volatile_access ? MEMORY_FLAG_VOLATILE_ACCESS : 0) |
(coherent_access ? MEMORY_FLAG_COHERENT_ACCESS : 0);
bool no_mask_handle = false;
int data_src = -1;