[Mesa-dev] [PATCH v3 06/32] glsl: make sampler/image scalar types

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue May 2 20:53:27 UTC 2017


As a side effect, this will magically fix std140/std430 interfaces
for bindless samplers/images and will help for implementing the
explicit conversions with constructors.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/compiler/glsl_types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h
index a61a522b1e..85892f8cb9 100644
--- a/src/compiler/glsl_types.h
+++ b/src/compiler/glsl_types.h
@@ -441,7 +441,7 @@ struct glsl_type {
    {
       return (vector_elements == 1)
 	 && (base_type >= GLSL_TYPE_UINT)
-	 && (base_type <= GLSL_TYPE_BOOL);
+	 && (base_type <= GLSL_TYPE_IMAGE);
    }
 
    /**
-- 
2.12.2



More information about the mesa-dev mailing list