radeonsi: implement 16-bit FS color outputs

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

This removes type conversions from 16 bits to 32 bits in the main function and then back to 16 bits in the epilog.

98a52fecdaa radeonsi: implement 16-bit FS color outputs
src/amd/llvm/ac_llvm_build.c | 22 +++++
src/amd/llvm/ac_llvm_build.h | 2 +
src/amd/llvm/ac_nir_to_llvm.c | 1 +
src/gallium/drivers/radeonsi/si_shader.c | 1 +
src/gallium/drivers/radeonsi/si_shader.h | 10 ++
src/gallium/drivers/radeonsi/si_shader_llvm.c | 7 +-
src/gallium/drivers/radeonsi/si_shader_llvm_ps.c | 115 ++++++++++++++++++-----
src/gallium/drivers/radeonsi/si_shader_nir.c | 18 ++++
8 files changed, 152 insertions(+), 24 deletions(-)

Upstream: cgit.freedesktop.org


  • Share