Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nir/conditional_if: Properly use the builder | Jason Ekstrand | 2016-12-30 | 1 | -11/+10 |
| | | | | | | | | | | We were passing around a void *mem_ctx and using that to initialize the builder which was wrong since that pointed to ralloc_parent(impl) which is the shader but the builder is supposed to be initialized with the nir_function_impl. Reviewed-by: Eduardo Lima Mitev <[email protected]> Reviewed-by: Jordan Justen <[email protected]> | ||||
* | nir: add conditional discard optimisation (v4) | Dave Airlie | 2016-11-10 | 1 | -0/+125 |
This is ported from GLSL and converts if (cond) discard; into discard_if(cond); This removes a block, but also is needed by radv to workaround a bug in the LLVM backend. v2: handle if (a) discard_if(b) (nha) cleanup and drop pointless loop (Matt) make sure there are no dependent phis (Eric) v3: make sure only one instruction in the then block. v4: remove sneaky tabs, add cursor init (Eric) Reviewed-by: Eric Anholt <[email protected]> Cc: "13.0" <[email protected]> Signed-off-by: Dave Airlie <[email protected]> |