r600/sfn: Fix indirect_file flag for IMAGES

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9167>
This commit is contained in:
Gert Wollny 2021-02-08 09:37:28 +01:00 committed by Marge Bot
parent 66f4cac69e
commit fa588edf15

View 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()) {