mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
ttn: Use nir_var_mem_image
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
b8ee37472d
commit
9f51fda92c
1 changed files with 1 additions and 1 deletions
|
|
@ -1280,7 +1280,7 @@ get_image_var(struct ttn_compile *c, int binding,
|
|||
if (!var) {
|
||||
const struct glsl_type *type = glsl_image_type(dim, is_array, base_type);
|
||||
|
||||
var = nir_variable_create(c->build.shader, nir_var_uniform, type, "image");
|
||||
var = nir_variable_create(c->build.shader, nir_var_mem_image, type, "image");
|
||||
var->data.binding = binding;
|
||||
var->data.explicit_binding = true;
|
||||
var->data.access = access;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue