mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
glsl: allow precision qualifiers for AoA
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
f70719cc4b
commit
9565e34528
1 changed files with 1 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue