Mesa (master): glsl: use without_array() rather than get_scalar_type()
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed Apr 26 22:21:40 UTC 2017
Module: Mesa
Branch: master
Commit: 52c76dbad39a96995624796b8363fed0ac065a18
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=52c76dbad39a96995624796b8363fed0ac065a18
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Wed Apr 26 13:56:44 2017 +1000
glsl: use without_array() rather than get_scalar_type()
Here get_scalar_type() was just being use to remove the array
after that we converted it back to base_type anyway so just
use the without_array() helper.
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index aeb223db9e..0ae87cb93e 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -3858,7 +3858,7 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
* 3.00 spec allows structs as well. Varying structs are also allowed
* in GLSL 1.50.
*/
- switch (var->type->get_scalar_type()->base_type) {
+ switch (var->type->without_array()->base_type) {
case GLSL_TYPE_FLOAT:
/* Ok in all GLSL versions */
break;
More information about the mesa-commit
mailing list