Mesa (main): microsoft/compiler: Images are no longer reprensented by uniform vars
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 14 23:17:13 UTC 2022
Module: Mesa
Branch: main
Commit: 303175cfecb166cc69736c1405ac2d3bbee9d82c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=303175cfecb166cc69736c1405ac2d3bbee9d82c
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Fri Apr 22 14:45:49 2022 +0200
microsoft/compiler: Images are no longer reprensented by uniform vars
emit_barrier_impl() was still checking the nir_var_uniform flag to
detect images, which is no longer correct.
Fixes: cfdc7ee066e ("spirv: Use nir_var_mem_image")
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16926>
---
src/microsoft/compiler/nir_to_dxil.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c
index 5b4b6c91f41..3eb4a595361 100644
--- a/src/microsoft/compiler/nir_to_dxil.c
+++ b/src/microsoft/compiler/nir_to_dxil.c
@@ -2501,11 +2501,7 @@ emit_barrier_impl(struct ntd_context *ctx, nir_variable_mode modes, nir_scope ex
if (execution_scope == NIR_SCOPE_WORKGROUP)
flags |= DXIL_BARRIER_MODE_SYNC_THREAD_GROUP;
- /* Currently vtn uses uniform to indicate image memory, which DXIL considers global */
- if (modes & nir_var_uniform)
- modes |= nir_var_mem_global;
-
- if (modes & (nir_var_mem_ssbo | nir_var_mem_global)) {
+ if (modes & (nir_var_mem_ssbo | nir_var_mem_global | nir_var_image)) {
if (mem_scope > NIR_SCOPE_WORKGROUP)
flags |= DXIL_BARRIER_MODE_UAV_FENCE_GLOBAL;
else
More information about the mesa-commit
mailing list