[Mesa-dev] [PATCH 2/2] glsl: remove wrong assertions for GLSL_SAMPLER_DIM_BUF
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Mar 29 19:01:37 UTC 2016
Type of GLSL_SAMPLER_DIM_BUF can be sampler or image.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Cc: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
src/compiler/glsl/ast_to_hir.cpp | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 5cdd57c..ee02912 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -2353,7 +2353,6 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
return names[type_idx];
}
case GLSL_SAMPLER_DIM_BUF: {
- assert(type->base_type == GLSL_TYPE_SAMPLER);
static const char *const names[8] = {
"samplerBuffer", NULL, NULL, NULL,
"imageBuffer", NULL, NULL, NULL
@@ -2416,7 +2415,6 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
return names[type_idx];
}
case GLSL_SAMPLER_DIM_BUF: {
- assert(type->base_type == GLSL_TYPE_SAMPLER);
static const char *const names[8] = {
"isamplerBuffer", NULL, NULL, NULL,
"iimageBuffer", NULL, NULL, NULL
@@ -2472,7 +2470,6 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
return names[type_idx];
}
case GLSL_SAMPLER_DIM_BUF: {
- assert(type->base_type == GLSL_TYPE_SAMPLER);
static const char *const names[8] = {
"usamplerBuffer", NULL, NULL, NULL,
"uimageBuffer", NULL, NULL, NULL
--
2.7.4
More information about the mesa-dev
mailing list