[Mesa-dev] [PATCH v2 07/31] glsl: allow bindless samplers/images as shader outputs

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Apr 24 10:35:38 UTC 2017


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

diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 85015e140e..e4b076f700 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -5137,7 +5137,8 @@ ast_declarator_list::hir(exec_list *instructions,
           *     * A Boolean type (bool, bvec2 ...)
           *     * An opaque type
           */
-         if (check_type->is_boolean() || check_type->contains_opaque())
+         if (check_type->is_boolean() || check_type->contains_atomic() ||
+             (!state->has_bindless() && check_type->contains_opaque()))
             _mesa_glsl_error(&loc, state,
                              "%s shader output cannot have type %s",
                              _mesa_shader_stage_to_string(state->stage),
-- 
2.12.2



More information about the mesa-dev mailing list