diff options
author | Dave Airlie <[email protected]> | 2014-11-28 00:49:48 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-12-02 13:57:27 +1000 |
commit | 7b0067d23a6f64cf83c42e7f11b2cd4100c569fe (patch) | |
tree | c1b19a88e374755ce463457f31daa94bcd9d1732 /Android.mk | |
parent | 036f434ac2dfed6ff730a1bd8f74eafd95bcad4e (diff) |
r600g/sb: fix issues cause by GLSL switching to loops for switch
Since 73dd50acf6d244979c2a657906aa56d3ac60d550
glsl: implement switch flow control using a loop
The SB backend was falling over in an assert or crashing.
Tracked this down to the loops having no repeats, but requiring
a working break, initial code just called the loop handler for
all non-if statements, but this caused a regression in
tests/shaders/dead-code-break-interaction.shader_test.
So I had to add further code to detect if all the departure
nodes are empty and avoid generating an empty loop for that case.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86089
Cc: "10.4" <[email protected]>
Reviewed-By: Glenn Kennard <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'Android.mk')
0 files changed, 0 insertions, 0 deletions