[Mesa-dev] [PATCH 1/7] nir: add bindless to nir data

Iago Toral itoral at igalia.com
Tue Feb 20 07:38:24 UTC 2018


This patch is:

Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Tue, 2018-02-20 at 14:42 +1100, Timothy Arceri wrote:
> ---
>  src/compiler/glsl/glsl_to_nir.cpp | 1 +
>  src/compiler/nir/nir.h            | 6 ++++++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/src/compiler/glsl/glsl_to_nir.cpp
> b/src/compiler/glsl/glsl_to_nir.cpp
> index 7a9d15015e..49d66c173c 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 2acd9511f5..c6541f0a6f 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.
>         *


More information about the mesa-dev mailing list