Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nir: Remove deref chain support from analyze_loops | Jason Ekstrand | 2018-06-22 | 1 | -56/+0 |
| | | | | | | | | | | Note that this patch needs to come late in the series since this pass can be run after any pass that damages nir_metadata_loop_analysis. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | freedreno/ir3: convert to deref instructions | Rob Clark | 2018-06-22 | 3 | -53/+57 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: promote intrinsic_get_var() to helper | Rob Clark | 2018-06-22 | 2 | -10/+10 |
| | | | | | | | | | | Useful in a few other places.. let's not copy-pasta Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Rework lower_locals_to_regs to use deref instructions | Jason Ekstrand | 2018-06-22 | 3 | -104/+90 |
| | | | | | | | | | | This completely reworks the pass to support deref instructions and delete support for old deref chains Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | intel,ir3: Re-enable nir_opt_copy_prop_vars | Jason Ekstrand | 2018-06-22 | 2 | -2/+2 |
| | | | | | | | | | Now that it's rewritten for deref instructions, we can turn it back on. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | radeonsi: Remove deref chain support in nir scan pass. | Bas Nieuwenhuizen | 2018-06-22 | 1 | -30/+4 |
| | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> | ||||
* | radv: Remove deref chain support in radv shader info pass. | Bas Nieuwenhuizen | 2018-06-22 | 1 | -97/+9 |
| | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> | ||||
* | ac/nir: Remove deref chain support. | Bas Nieuwenhuizen | 2018-06-22 | 1 | -354/+50 |
| | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> | ||||
* | radeonsi: Add deref support to the nir scan pass. | Bas Nieuwenhuizen | 2018-06-22 | 1 | -15/+59 |
| | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> | ||||
* | nir: Rework opt_copy_prop_vars to use deref instructions | Jason Ekstrand | 2018-06-22 | 1 | -170/+146 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/copy_prop_vars: Re-order some logic in compare_derefs | Jason Ekstrand | 2018-06-22 | 1 | -8/+8 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from split_per_member_structs | Jason Ekstrand | 2018-06-22 | 1 | -83/+3 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from opt_undef | Jason Ekstrand | 2018-06-22 | 1 | -1/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from split_var_copies | Jason Ekstrand | 2018-06-22 | 1 | -210/+6 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from dead_variables | Jason Ekstrand | 2018-06-22 | 1 | -83/+3 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from propagate_invariant | Jason Ekstrand | 2018-06-22 | 1 | -11/+3 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_var_copies | Jason Ekstrand | 2018-06-22 | 1 | -132/+8 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_drawpixels | Jason Ekstrand | 2018-06-22 | 1 | -13/+5 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from opt_peephole_select | Jason Ekstrand | 2018-06-22 | 1 | -11/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_tex | Jason Ekstrand | 2018-06-22 | 1 | -6/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_wpos_ytransform | Jason Ekstrand | 2018-06-22 | 1 | -36/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_wpos_center | Jason Ekstrand | 2018-06-22 | 1 | -11/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_system_values | Jason Ekstrand | 2018-06-22 | 1 | -13/+11 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from remove_unused_varyings | Jason Ekstrand | 2018-06-22 | 1 | -7/+6 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Delete lower_io_types | Jason Ekstrand | 2018-06-22 | 5 | -182/+0 |
| | | | | | | | | | | It's only used by the ir3 stand-alone compiler and Rob said we could delete it. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_phis_to_scalar | Jason Ekstrand | 2018-06-22 | 1 | -7/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Convert lower_io to deref instructions | Jason Ekstrand | 2018-06-22 | 1 | -68/+37 |
| | | | | | | | | | | | This deletes support for _var intrinsics and legacy deref chains in favor of deref instructions. The internals are also reworked a bit to use deref instructions directly. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/lower_io: Convert atomic lowering to deref instructions | Jason Ekstrand | 2018-06-22 | 1 | -23/+27 |
| | | | | | | | | | | | No one is currently using so we can make this change irrespective of driver. We may use it again in i965 so it's best to pretend to keep it working. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_global_vars_to_local | Jason Ekstrand | 2018-06-22 | 1 | -18/+4 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_clamp_color_outputs | Jason Ekstrand | 2018-06-22 | 1 | -3/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_alpha_test | Jason Ekstrand | 2018-06-22 | 1 | -3/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_atomics | Jason Ekstrand | 2018-06-22 | 1 | -144/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_clip_cull_distance_arrays | Jason Ekstrand | 2018-06-22 | 1 | -52/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Remove deref chain support from lower_indirect_derefs | Jason Ekstrand | 2018-06-22 | 1 | -161/+2 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Rework gather_info to entirely use deref instructions | Jason Ekstrand | 2018-06-22 | 1 | -28/+14 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/vars_to_ssa: Rework to entirely use deref instructions | Jason Ekstrand | 2018-06-22 | 1 | -184/+152 |
| | | | | | | | | | | | This commit reworks nir_lower_vars_to_ssa to use deref instructions and deref paths internally instead of deref chains. We also drop support for the old load/store/copy_var intrinsics. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/vars_to_ssa: Add an is_direct field to deref_node | Jason Ekstrand | 2018-06-22 | 1 | -16/+25 |
| | | | | | | | | | | This makes us build the is_direct parameter as the nodes are constructed rather than as we walk the chain. This will be useful later. Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | broadcom/vc4: Remove deref chain support from nir_lower_txf_ms. | Eric Anholt | 2018-06-22 | 1 | -1/+0 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | st,ir3,radeonsi: push lower_deref_instrs back into driver | Rob Clark | 2018-06-22 | 5 | -7/+3 |
| | | | | | | | | | | | | | vc4+vc5 is not really effected by the deref chain to deref instr conversion, so it no longer needs this pass. For others, now that all the passes mesa/st uses are using deref instructions, push the lowering to deref chains back into driver. Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/lower_samplers: remove legacy version | Rob Clark | 2018-06-22 | 5 | -168/+1 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: convert lower_samplers_as_deref to deref instructions | Rob Clark | 2018-06-22 | 2 | -68/+120 |
| | | | | | | | | | | This also removes the legacy version of lower_samplers. Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | mesa/st: re-enable lower_io_to_elements() | Rob Clark | 2018-06-22 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: convert lower_io_arrays_to_elements to deref instructions | Rob Clark | 2018-06-22 | 3 | -83/+83 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | mesa/st/nir: convert lower_builtins to deref instructions | Rob Clark | 2018-06-22 | 2 | -26/+41 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | mesa/st: temporarily disable lower_io_to_elements() | Rob Clark | 2018-06-22 | 1 | -1/+1 |
| | | | | | | | | | | | | Not required for correctness, and makes the order of converting passes to deref instructions hard to get right for both prog_to_nir and glsl_to_nir cases. Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: convert lower_io_to_scalar to deref instructions | Rob Clark | 2018-06-22 | 3 | -49/+49 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | move lower_deref_instrs | Rob Clark | 2018-06-22 | 3 | -6/+3 |
| | | | | | | | | Signed-off-by: Rob Clark <[email protected]> Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir: Use deref instructions in lower_constant_initializers | Jason Ekstrand | 2018-06-22 | 3 | -84/+39 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | nir/builder: Use deref instructions for load/store/copy_var | Jason Ekstrand | 2018-06-22 | 1 | -24/+4 |
| | | | | | | | Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> | ||||
* | radv: Disable lower_io_to_temporaries during deref changes. | Bas Nieuwenhuizen | 2018-06-22 | 1 | -0/+3 |
| | | | | | | Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> |