mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
glsl: Make error_value a real ir_rvalue type
It exposes a type so let it be a real ir_rvalue instead of abusing ir_type_unset. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27114>
This commit is contained in:
parent
a38e7f127a
commit
d795bd380a
2 changed files with 5 additions and 3 deletions
|
|
@ -2212,7 +2212,7 @@ ir_function::has_user_signature()
|
|||
ir_rvalue *
|
||||
ir_rvalue::error_value(void *mem_ctx)
|
||||
{
|
||||
ir_rvalue *v = new(mem_ctx) ir_rvalue(ir_type_unset);
|
||||
ir_rvalue *v = new(mem_ctx) ir_rvalue(ir_type_error);
|
||||
|
||||
v->type = &glsl_type_builtin_error;
|
||||
return v;
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ enum ir_node_type {
|
|||
ir_type_end_primitive,
|
||||
ir_type_barrier,
|
||||
ir_type_max, /**< maximum ir_type enum number, for validation */
|
||||
ir_type_unset = ir_type_max
|
||||
ir_type_unset = ir_type_max,
|
||||
ir_type_error
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -132,7 +133,8 @@ public:
|
|||
ir_type == ir_type_constant ||
|
||||
ir_type == ir_type_expression ||
|
||||
ir_type == ir_type_swizzle ||
|
||||
ir_type == ir_type_texture;
|
||||
ir_type == ir_type_texture ||
|
||||
ir_type == ir_type_error;
|
||||
}
|
||||
|
||||
bool is_dereference() const
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue