nir: add support for user defined select control
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 20 Mar 2019 04:42:56 +0000 (15:42 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 27 Mar 2019 02:39:12 +0000 (02:39 +0000)
commite76ae39ae22ee21f83c41e80737979e9bc78cc15
tree9acada63c74e0885cba84b4f9befa70308d11f1c
parent24037ff22820efe23946dae5a9f8afb419a9c1eb
nir: add support for user defined select control

This will allow us to make use of the selection control support in
spirv and the GL support provided by EXT_control_flow_attributes.

Note this only supports if-statements as we dont support switches
in NIR.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108841
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_opt_peephole_select.c