From: Eric Anholt Date: Thu, 6 May 2010 18:24:50 +0000 (-0700) Subject: ir_to_mesa: Support gl_Position output. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=110d5cc83c18999e578ef7485e3c976446176b81;p=mesa.git ir_to_mesa: Support gl_Position output. --- diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index f8b37dd2028..9f9113d2c31 100644 --- a/ir_to_mesa.cpp +++ b/ir_to_mesa.cpp @@ -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); }