v3d: Handle dynamically uniform IF statements with uniform control flow

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 2 January 2019 22:12 EST

Loops will be trickier, since we need some analysis to figure out if the breaks/continues inside are uniform. Until we get that in NIR, this gets us some quick wins.

total instructions in shared programs: 6192844 -> 6174162 (-0.30%) instructions in affected programs: 487781 -> 469099 (-3.83%)

0805060573 v3d: Handle dynamically uniform IF statements with uniform control flow.
src/broadcom/compiler/nir_to_vir.c | 66 +++++++++++++++++++++++++++++++++++++-
1 file changed, 65 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share