[Mesa-dev] [PATCH 1/2] glsl: add missing types for buffer images
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Mar 29 19:01:36 UTC 2016
Spotted while trying to run dEQP tests related to
ARB_shader_image_load_store.
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 | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 29a4642..5cdd57c 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -2354,8 +2354,9 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
}
case GLSL_SAMPLER_DIM_BUF: {
assert(type->base_type == GLSL_TYPE_SAMPLER);
- static const char *const names[4] = {
- "samplerBuffer", NULL, NULL, NULL
+ static const char *const names[8] = {
+ "samplerBuffer", NULL, NULL, NULL,
+ "imageBuffer", NULL, NULL, NULL
};
return names[type_idx];
}
@@ -2416,8 +2417,9 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
}
case GLSL_SAMPLER_DIM_BUF: {
assert(type->base_type == GLSL_TYPE_SAMPLER);
- static const char *const names[4] = {
- "isamplerBuffer", NULL, NULL, NULL
+ static const char *const names[8] = {
+ "isamplerBuffer", NULL, NULL, NULL,
+ "iimageBuffer", NULL, NULL, NULL
};
return names[type_idx];
}
@@ -2471,8 +2473,9 @@ get_type_name_for_precision_qualifier(const glsl_type *type)
}
case GLSL_SAMPLER_DIM_BUF: {
assert(type->base_type == GLSL_TYPE_SAMPLER);
- static const char *const names[4] = {
- "usamplerBuffer", NULL, NULL, NULL
+ static const char *const names[8] = {
+ "usamplerBuffer", NULL, NULL, NULL,
+ "uimageBuffer", NULL, NULL, NULL
};
return names[type_idx];
}
--
2.7.4
More information about the mesa-dev
mailing list