r600/sfn: Fix indirect_file flag for IMAGES
authorGert Wollny <gert.wollny@collabora.com>
Mon, 8 Feb 2021 08:37:28 +0000 (09:37 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 20:43:02 +0000 (20:43 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9167>

src/gallium/drivers/r600/sfn/sfn_shader_base.cpp

index 0bf0583..9673817 100644 (file)
@@ -281,8 +281,8 @@ bool ShaderFromNirProcessor::process_uniforms(nir_variable *uniform)
    auto type = uniform->type->is_array() ? uniform->type->without_array(): uniform->type;
    if (type->is_image() || uniform->data.mode == nir_var_mem_ssbo) {
       sh_info().uses_images = 1;
-      if (uniform->type->is_array())
-         sh_info().indirect_files |= TGSI_FILE_IMAGE;
+      if (uniform->type->is_array() && ! (uniform->data.mode == nir_var_mem_ssbo))
+         sh_info().indirect_files |= 1 << TGSI_FILE_IMAGE;
    }
 
    if (uniform->type->is_image()) {