mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 18:50:43 +02:00
The mediump lowering tests are important for poking at the lowering pass behavior, since you can't really assert the behavior in any given driver, given that the GLSL spec allows any mediump op to be done in highp. But, in hacking on mediump lowering, I wanted several things that the old test couldn't do: - Be able to assert about the actual NIR code we expect to generate for a hypothetical driver (important if other compiler stages might do invalid transformations like eliminating highp temps, or if we were to move the lowering after GLSL IR) - Run faster (gtest unit tests rather than python forking off the standalone glsl compiler per testcase). - Express expectations with a lot less escaping of typical syntax. - High-quality logs for displaying failures. This new test does all of that, I think, though I haven't converted all of the unit tests over yet. In converting, I dropped some of the combinatorial explosion for float/int variations, instead only doing so when it gets at some different code path (default precision flags). I've also included some new tests I wrote in the process of writing my proposed gl_nir mediump lowering. Even if the conversion isn't complete, getting these tests to run faster is probably a good idea on its own, for anyone iterating running Mesa's unit tests (80 tests in 25ms, compared to 109 tests in 1.5s!). Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21886> |
||
|---|---|---|
| .. | ||
| warnings | ||
| array_refcount_test.cpp | ||
| builtin_variable_test.cpp | ||
| general_ir_test.cpp | ||
| list_iterators.cpp | ||
| lower_int64_test.cpp | ||
| lower_jump_cases.py | ||
| lower_precision_test.py | ||
| meson.build | ||
| opt_add_neg_to_sub_test.cpp | ||
| optimization_test.py | ||
| sampler_types_test.cpp | ||
| sexps.py | ||
| standalone_dump-builder.frag | ||
| test_gl_lower_mediump.cpp | ||
| warnings_test.py | ||