mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 13:30:39 +01:00
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:
parent
66f4cac69e
commit
fa588edf15
1 changed files with 2 additions and 2 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue