mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
glsl2: Emit OPCODE_END at the end of the Mesa program.
The 965 driver can now run a glsl2-generated shader!
This commit is contained in:
parent
582b73fe69
commit
abc4e52992
1 changed files with 2 additions and 0 deletions
|
|
@ -1233,6 +1233,8 @@ get_mesa_program(GLcontext *ctx, void *mem_ctx, struct glsl_shader *shader)
|
|||
|
||||
v.mem_ctx = talloc_new(NULL);
|
||||
visit_exec_list(instructions, &v);
|
||||
v.ir_to_mesa_emit_op1(NULL, OPCODE_END,
|
||||
ir_to_mesa_undef_dst, ir_to_mesa_undef);
|
||||
|
||||
prog->NumTemporaries = v.next_temp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue