mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
Convert structure field dereferences to HIR
This commit is contained in:
parent
7ee79fb6b7
commit
6efaeeea44
1 changed files with 7 additions and 1 deletions
|
|
@ -62,7 +62,13 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
|
|||
expr->primary_expression.identifier);
|
||||
}
|
||||
} else if (op->type->base_type == GLSL_TYPE_STRUCT) {
|
||||
/* FINISHME: Handle field selection from structures. */
|
||||
result = new ir_dereference(op, expr->primary_expression.identifier);
|
||||
|
||||
if (result->type->is_error()) {
|
||||
_mesa_glsl_error(& loc, state, "Cannot access field `%s' of "
|
||||
"structure",
|
||||
expr->primary_expression.identifier);
|
||||
}
|
||||
} else {
|
||||
_mesa_glsl_error(& loc, state, "Cannot access field `%s' of "
|
||||
"non-structure / non-vector.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue