Kenneth Graunke
61a44ccaef
exec_list: Fix foreach_list_safe.
...
It now works correctly when nodes are removed, as it was originally
intended to do; it no longer processes nodes added to the list before
the current node, nor those added immediately after the current node.
This matches the behavior of Linux's list_for_each_safe.
2010-07-19 14:49:34 -07:00
Kenneth Graunke
a4dde28ee6
glsl2: Use new foreach_list_safe abstraction.
2010-07-09 09:46:29 -07:00
Eric Anholt
773025b92c
glsl2: Don't forget to walk the parameters to a function in the hv.
...
Fixes segfaults from use after free after the steal of ir nodes and
free of the compile context.
2010-07-07 09:07:52 -07:00
Eric Anholt
8a1f186cc5
glsl2: Add a pass to convert mod(a, b) to b * fract(a/b).
...
This is used by the Mesa IR backend to implement mod, fixing glsl-fs-mod.
2010-07-01 11:07:23 -07:00
Kenneth Graunke
16efab1c4d
glsl2: Define new ir_discard instruction.
2010-06-30 14:54:58 -07:00
Eric Anholt
2928588267
glsl2: Move the compiler to the subdirectory it will live in in Mesa.
2010-06-24 15:36:00 -07:00