lima: add support for R and RG formats

Graphics / Mesa 3D Graphics Library / Mesa - Vasily Khoruzhick [gmail.com] - 20 March 2020 17:00 EDT

Unfortunately these are not supported natively for sampling so we have to lower them.

1b49534df21 lima: add support for R and RG formats
src/gallium/drivers/lima/ir/pp/codegen.c | 3 +
src/gallium/drivers/lima/lima_context.h | 2 +
src/gallium/drivers/lima/lima_format.c | 68 ++++++++-----
src/gallium/drivers/lima/lima_format.h | 1 +
src/gallium/drivers/lima/lima_program.c | 110 ++++++++++++++++++---
src/gallium/drivers/lima/lima_program.h | 4 +-
.../lima/standalone/lima_compiler_cmdline.c | 6 +-
7 files changed, 157 insertions(+), 37 deletions(-)

Upstream: cgit.freedesktop.org


  • Share