From: Timothy Arceri Date: Sun, 18 Feb 2018 21:41:56 +0000 (+1100) Subject: nir: add bindless to nir data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c810a2c05678be2b5b28be1a1ed27f5e9754c00;p=mesa.git nir: add bindless to nir data Reviewed-by: Iago Toral Quiroga Reviewed-by: Marek Olšák Reviewed-by: Samuel Pitoiset --- diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 9e938daf8d9..c4a6d52a5b2 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++ b/src/compiler/glsl/glsl_to_nir.cpp @@ -434,6 +434,7 @@ nir_visitor::visit(ir_variable *ir) var->data.index = ir->data.index; var->data.descriptor_set = 0; var->data.binding = ir->data.binding; + var->data.bindless = ir->data.bindless; var->data.offset = ir->data.offset; var->data.image.read_only = ir->data.memory_read_only; var->data.image.write_only = ir->data.memory_write_only; diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index b474567be1c..9fff1f4647d 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -249,6 +249,12 @@ typedef struct nir_variable { */ unsigned fb_fetch_output:1; + /** + * Non-zero if this variable is considered bindless as defined by + * ARB_bindless_texture. + */ + unsigned bindless:1; + /** * \brief Layout qualifier for gl_FragDepth. *