mesa/src/compiler/nir/tests
Dave Airlie 4785e50e75 nir/test: add split vars tests (v2)
This just adds some split var splitting tests, it verifies
by counting derefs and local vars.

a basic load from inputs, store to array,
same as before but with a shader temp
struct { float } [4] don't split test
a basic load from inputs, with some out of band loads.
a load/store of only half the array
two level array, load from inputs store to all levels
a basic load from inputs with an indirect store to array.
two level array, indirect store to lvl 0
two level array, indirect store to lvl 1
load from inputs, store to array twice
load from input, store to array, load from array, store to another array.
load and from input and copy deref to array
create wildcard derefs, and do a copy

v2: use array_imm helpers, move derefs out of loops,
rename toplevel/secondlevel, use ints, fix lvl1 don't split test,
rename globabls to shader_temp, add comment, check the derefs type

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2019-05-21 13:43:28 +10:00
..
algebraic_parser_test.py nir: Fixup algebraic test for variable-sized conversions 2018-12-07 16:07:51 +01:00
algebraic_parser_test.sh nir/algebraic: Make algebraic_parser_test.sh executable. 2018-12-06 11:48:20 -08:00
control_flow_tests.cpp nir: Fix the control flow tests for nir_loop_first_block changes 2016-10-06 15:48:30 -07:00
negative_equal_tests.cpp nir: make nir_const_value scalar 2019-04-14 22:25:56 +02:00
vars_tests.cpp nir/test: add split vars tests (v2) 2019-05-21 13:43:28 +10:00