mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
mesa: ir_to_mesa support for system values
This commit is contained in:
parent
7ce186358e
commit
691048a22a
1 changed files with 5 additions and 0 deletions
|
|
@ -1460,6 +1460,7 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
|
|||
case ir_var_in:
|
||||
case ir_var_out:
|
||||
case ir_var_inout:
|
||||
case ir_var_system_value:
|
||||
/* The linker assigns locations for varyings and attributes,
|
||||
* including deprecated builtins (like gl_Color), user-assign
|
||||
* generic attributes (glBindVertexLocation), and
|
||||
|
|
@ -1482,6 +1483,10 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
|
|||
ir->var->type->gl_type,
|
||||
ir->var->location - VERT_ATTRIB_GENERIC0);
|
||||
}
|
||||
} else if (ir->var->mode == ir_var_system_value) {
|
||||
entry = new(mem_ctx) variable_storage(ir->var,
|
||||
PROGRAM_SYSTEM_VALUE,
|
||||
ir->var->location);
|
||||
} else {
|
||||
entry = new(mem_ctx) variable_storage(ir->var,
|
||||
PROGRAM_OUTPUT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue