summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2021-03-30 01:04:56 +0200
committerMarge Bot <eric+marge@anholt.net>2021-04-11 10:06:50 +0000
commit2d6b7b2e0c743417b98a7b909858bdc26293f91b (patch)
treec2959bec58e310db878c0bfdd152633097bcd458
parent8393fad0dec602f58011a0e9c5ab825b355d5a04 (diff)
lima: enable rg formats for fp16 render
These were noticed by trial and error after fixing the fp16 render setup. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9916>
-rw-r--r--src/gallium/drivers/lima/lima_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/lima_format.c b/src/gallium/drivers/lima/lima_format.c
index e3b61042402..2b0167a425f 100644
--- a/src/gallium/drivers/lima/lima_format.c
+++ b/src/gallium/drivers/lima/lima_format.c
@@ -62,6 +62,8 @@
#define LIMA_PIXEL_FORMAT_B8 0x04
#define LIMA_PIXEL_FORMAT_G8B8 0x05
#define LIMA_PIXEL_FORMAT_B16G16R16A16_FLOAT 0x06
+#define LIMA_PIXEL_FORMAT_B16_FLOAT 0x07
+#define LIMA_PIXEL_FORMAT_G16B16_FLOAT 0x08
#define LIMA_PIXEL_FORMAT_Z16 0x0e
#define LIMA_PIXEL_FORMAT_Z24S8 0x0f
@@ -139,6 +141,8 @@ static const struct lima_format lima_pixel_formats[] = {
LIMA_PIXEL_FORMAT(Z24_UNORM_S8_UINT, Z24S8, false, 0x0000),
LIMA_PIXEL_FORMAT(Z24X8_UNORM, Z24S8, false, 0x0000),
LIMA_PIXEL_FORMAT(R16G16B16A16_FLOAT, B16G16R16A16_FLOAT, true, 0x0000),
+ LIMA_PIXEL_FORMAT(R16_FLOAT, B16_FLOAT, true, 0x0000),
+ LIMA_PIXEL_FORMAT(R16G16_FLOAT, G16B16_FLOAT, true, 0x0000),
};
static const struct lima_format *