[Mesa-dev] [RFC PATCH 17/26] glsl: allow bindless samplers/images as varying variables

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Apr 11 16:48:28 UTC 2017


The ARB_bindless_texture spec says:

   "Replace Section 4.1.7 (Samplers), p. 25"

   "Samplers may be declared as shader inputs and outputs, as uniform
    variables, as temporary variables, and as function parameters"

and,

   "Replace Section 4.1.X, (Images)"

   "Images may be declared as shader inputs and outputs, as uniform
    variables, as temporary variables, and as function parameters."

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/compiler/glsl/ast_to_hir.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index bcdf212497..3392c7c4d3 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -4034,6 +4034,8 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
       case GLSL_TYPE_DOUBLE:
       case GLSL_TYPE_UINT64:
       case GLSL_TYPE_INT64:
+      case GLSL_TYPE_BINDLESS_SAMPLER:
+      case GLSL_TYPE_BINDLESS_IMAGE:
          break;
       default:
          _mesa_glsl_error(loc, state, "illegal type for a varying variable");
-- 
2.12.2



More information about the mesa-dev mailing list