Mesa (master): panfrost: Handle PIPE_FORMAT_R10G10B10A2_USCALED

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 6 13:09:08 UTC 2020


Module: Mesa
Branch: master
Commit: b3ff83c10751b40292f71a6d3b41d41c820e9fcb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3ff83c10751b40292f71a6d3b41d41c820e9fcb

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Sat Jan  4 13:27:20 2020 -0500

panfrost: Handle PIPE_FORMAT_R10G10B10A2_USCALED

Same format code as UINT... might be different in how it's fed into a
shader but we'll deal with that when we get there.

Fixes dEQP-GLES3.functional.vertex_arrays.single_attribute.output_types.usigned_int2_10_10_10.components4_vec2_quads1

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>

---

 src/gallium/drivers/panfrost/pan_format.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_format.c b/src/gallium/drivers/panfrost/pan_format.c
index 16bc5edc6c9..9b0440eae37 100644
--- a/src/gallium/drivers/panfrost/pan_format.c
+++ b/src/gallium/drivers/panfrost/pan_format.c
@@ -174,6 +174,8 @@ panfrost_find_format(const struct util_format_description *desc) {
 
         case PIPE_FORMAT_R10G10B10A2_UINT:
         case PIPE_FORMAT_B10G10R10A2_UINT:
+        case PIPE_FORMAT_R10G10B10A2_USCALED:
+        case PIPE_FORMAT_B10G10R10A2_USCALED:
                 return MALI_RGB10_A2UI;
 
         case PIPE_FORMAT_R10G10B10A2_SSCALED:




More information about the mesa-commit mailing list