glsl: lower mediump temporaries to 16 bits except structures (v2)

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 8 July 2020 02:02 UTC

Without this, NIR contains non-lowerable 32-bit phis for mediump variables.

Structures are not lowered yet.

v2: add the LowerPrecisionTemporaries option

6aea39641a6 glsl: lower mediump temporaries to 16 bits except structures (v2)
src/compiler/glsl/lower_precision.cpp | 376 +++++++++++++-
src/compiler/glsl/standalone.cpp | 1 +
src/compiler/glsl/tests/lower_precision_test.py | 647 ++++++++++++++++++++++++
src/mesa/main/mtypes.h | 6 +
4 files changed, 1028 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share