glsl/nir_linker: nir_var_mem_image is also a GL uniform
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
This commit is contained in:

committed by
Marge Bot

parent
94b9f25883
commit
c0d8dc13e0
@@ -394,7 +394,8 @@ add_var_use_deref(nir_deref_instr *deref, struct hash_table *live,
|
||||
if (deref->deref_type != nir_deref_type_var ||
|
||||
!nir_deref_mode_is_one_of(deref, nir_var_uniform |
|
||||
nir_var_mem_ubo |
|
||||
nir_var_mem_ssbo)) {
|
||||
nir_var_mem_ssbo |
|
||||
nir_var_mem_image)) {
|
||||
nir_deref_path_finish(&path);
|
||||
return;
|
||||
}
|
||||
|
@@ -38,7 +38,8 @@ struct gl_nir_linker_options {
|
||||
#define nir_foreach_gl_uniform_variable(var, shader) \
|
||||
nir_foreach_variable_with_modes(var, shader, nir_var_uniform | \
|
||||
nir_var_mem_ubo | \
|
||||
nir_var_mem_ssbo)
|
||||
nir_var_mem_ssbo | \
|
||||
nir_var_mem_image)
|
||||
|
||||
bool gl_nir_link_spirv(struct gl_context *ctx,
|
||||
struct gl_shader_program *prog,
|
||||
|
Reference in New Issue
Block a user