[Mesa-dev] [PATCH 07/19] glsl: allow precision qualifiers for AoA

Ilia Mirkin imirkin at alum.mit.edu
Fri Jul 3 19:23:33 PDT 2015


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Sat, Jun 20, 2015 at 8:33 AM, Timothy Arceri <t_arceri at yahoo.com.au> wrote:
> ---
>  src/glsl/ast_to_hir.cpp | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
> index f1c3e4a..0d3cbac 100644
> --- a/src/glsl/ast_to_hir.cpp
> +++ b/src/glsl/ast_to_hir.cpp
> @@ -3881,9 +3881,7 @@ ast_declarator_list::hir(exec_list *instructions,
>         * an array of that type.
>         */
>        if (!(this->type->qualifier.precision == ast_precision_none
> -          || precision_qualifier_allowed(var->type)
> -          || (var->type->is_array()
> -             && precision_qualifier_allowed(var->type->fields.array)))) {
> +          || precision_qualifier_allowed(var->type->without_array()))) {
>
>           _mesa_glsl_error(&loc, state,
>                            "precision qualifiers apply only to floating point"
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list