mesa/src/compiler/nir/tests
Jesse Natalie cf9ea94958 nir_split_struct_vars: Support more modes and constant initializers
Idiomatic DXIL has constants contained within global variables rather
than a big blob of data. Doing this allows us to have 16-bit and 64-bit
data as well, where normally bitcasts would be disallowed on variable
GEP chains.

Unfortunately, DXIL validation requires SOA to be turned into AOS,
which means we need to split structs. We want to be able to run this
on nir_var_mem_constant variables which have constant initializers,
so add a bit of logic to handle that case, and relax the mode validation.
There's nothing special about the modes it was set up to handle.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23173>
2023-06-13 00:43:36 +00:00
..
algebraic_parser_test.py nir/algebraic: Move relocations for expression conds to a table. 2021-12-07 07:09:00 +00:00
algebraic_tests.cpp nir/tests: add tests for umod/imod/irem optimizations 2021-08-09 11:00:39 +00:00
builder_tests.cpp
comparison_pre_tests.cpp
control_flow_tests.cpp nir/tests: Don't unconditionally log shaders from this one CF test 2023-02-17 22:12:05 +00:00
core_tests.cpp nir/tests: do not use designated initializers in c++ code 2022-04-05 16:58:56 +00:00
dce_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
load_store_vectorizer_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
loop_analyze_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
loop_unroll_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
lower_alu_width_tests.cpp nir: add nir_lower_alu_width_test.fdot_order 2023-03-08 14:38:26 +00:00
mod_analysis_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
negative_equal_tests.cpp nir/tests: Fix transmuting an SSA dest to be non-SSA 2021-09-14 17:53:06 +00:00
opt_if_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
opt_shrink_vectors_tests.cpp nir: Drop unused name from nir_ssa_dest_init 2023-05-17 23:46:16 +00:00
serialize_tests.cpp nir: Fixes [-Wdeprecated-declarations] in serialize_tests.cpp 2022-08-23 15:19:16 +00:00
ssa_def_bits_used_tests.cpp nir: Combine if_uses with instruction uses 2023-04-07 23:48:03 +00:00
vars_tests.cpp nir_split_struct_vars: Support more modes and constant initializers 2023-06-13 00:43:36 +00:00