glsl: Use nir_var_mem_image for images
We don't use it for bindless images because the uniforms in that case just contain a bindless handle and aren't an actual image. Bound images, on the other hand, go in the nir_var_mem_image class. 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:
parent
cfdc7ee066
commit
b8ee37472d
|
@ -545,6 +545,8 @@ nir_visitor::visit(ir_variable *ir)
|
|||
case ir_var_uniform:
|
||||
if (ir->get_interface_type())
|
||||
var->data.mode = nir_var_mem_ubo;
|
||||
else if (ir->type->contains_image() && !ir->data.bindless)
|
||||
var->data.mode = nir_var_mem_image;
|
||||
else
|
||||
var->data.mode = nir_var_uniform;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue