Mesa (master): panfrost: Promote 8b to 16b for blend descriptors
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jan 11 22:43:59 UTC 2021
Module: Mesa
Branch: master
Commit: 0b590c2e8ca9fc7064928722be5de969f52bf6fd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b590c2e8ca9fc7064928722be5de969f52bf6fd
Author: Boris Brezillon <boris.brezillon at collabora.com>
Date: Fri Nov 20 16:58:53 2020 +0100
panfrost: Promote 8b to 16b for blend descriptors
There is no 8-bit register_format applicable. Some lowering is needed
at the compiler level to make it work.
Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Tested-by: Maciej Matuszczyk <maccraft123mc at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8427>
---
src/gallium/drivers/panfrost/pan_blend_shaders.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c
index 8ff0649ad72..abb9f6a6376 100644
--- a/src/gallium/drivers/panfrost/pan_blend_shaders.c
+++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c
@@ -240,6 +240,7 @@ bifrost_get_blend_desc(const struct panfrost_device *dev,
cfg.fixed_function.conversion.register_format =
MALI_BIFROST_REGISTER_FILE_FORMAT_F32;
break;
+ case nir_type_int8:
case nir_type_int16:
cfg.fixed_function.conversion.register_format =
MALI_BIFROST_REGISTER_FILE_FORMAT_I16;
@@ -248,6 +249,7 @@ bifrost_get_blend_desc(const struct panfrost_device *dev,
cfg.fixed_function.conversion.register_format =
MALI_BIFROST_REGISTER_FILE_FORMAT_I32;
break;
+ case nir_type_uint8:
case nir_type_uint16:
cfg.fixed_function.conversion.register_format =
MALI_BIFROST_REGISTER_FILE_FORMAT_U16;
More information about the mesa-commit
mailing list