projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582b73f
)
glsl2: Emit OPCODE_END at the end of the Mesa program.
author
Eric Anholt
<eric@anholt.net>
Fri, 25 Jun 2010 20:00:38 +0000
(13:00 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 25 Jun 2010 20:28:16 +0000
(13:28 -0700)
The 965 driver can now run a glsl2-generated shader!
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index accd151576dcddd03753ead87c3bb7471190f6fd..f58af0f65f5be7139577d3d8272629c4285d058c 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-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;