mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
ir_to_mesa: Support gl_Position output.
This commit is contained in:
parent
8041bce333
commit
110d5cc83c
1 changed files with 3 additions and 0 deletions
|
|
@ -442,6 +442,9 @@ ir_to_mesa_visitor::visit(ir_dereference_variable *ir)
|
|||
if (strncmp(var->name, "gl_", 3) == 0) {
|
||||
if (strcmp(var->name, "gl_FragColor") == 0) {
|
||||
ir_to_mesa_set_tree_reg(tree, PROGRAM_INPUT, FRAG_ATTRIB_COL0);
|
||||
} else if (strcmp(var->name, "gl_Position") == 0) {
|
||||
ir_to_mesa_set_tree_reg(tree, PROGRAM_OUTPUT,
|
||||
VERT_RESULT_HPOS);
|
||||
} else {
|
||||
assert(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue