glsl: handle int16 and uint16 types and add instructions for mediump

Graphics / Mesa 3D Graphics Library / Mesa - Marek Olšák [amd.com] - 2 June 2020 20:01 UTC

v2: add more changes to ir_validate.cpp

a052a9c2777 glsl: handle int16 and uint16 types and add instructions for mediump
src/compiler/glsl/glsl_to_nir.cpp | 34 +++++
src/compiler/glsl/ir.cpp | 165 +++++++++++++++++++++++++
src/compiler/glsl/ir.h | 6 +
src/compiler/glsl/ir_constant_expression.cpp | 69 +++++++++--
src/compiler/glsl/ir_expression_operation.py | 5 +
src/compiler/glsl/ir_print_visitor.cpp | 2 +
src/compiler/glsl/ir_validate.cpp | 147 ++++++++++++----------
src/compiler/glsl/opt_constant_propagation.cpp | 6 +
src/compiler/glsl/opt_minmax.cpp | 26 ++++
src/compiler/glsl_types.h | 50 ++++++++
src/mesa/program/ir_to_mesa.cpp | 4 +
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 +
12 files changed, 445 insertions(+), 73 deletions(-)

Upstream: cgit.freedesktop.org


  • Share