nir: add bindless to nir data
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 18 Feb 2018 21:41:56 +0000 (08:41 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 28 Mar 2018 01:56:15 +0000 (12:56 +1100)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.h

index 9e938daf8d966b4061874f229376944fd324b2bc..c4a6d52a5b2fce619007e6b579574a727b361308 100644 (file)
@@ -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;
index b474567be1ce60d5162633b557962f96f4569797..9fff1f4647d5c34897a143d766be061bee49f477 100644 (file)
@@ -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.
        *