panfrost: Handle PIPE_FORMAT_R10G10B10A2_USCALED
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 4 Jan 2020 18:27:20 +0000 (13:27 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 6 Jan 2020 12:50:00 +0000 (07:50 -0500)
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@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_format.c

index 16bc5edc6c9bf8cbc1a8b4f5cc9ebcd0cdb1084c..9b0440eae378923b93d1361026f8b1443150800d 100644 (file)
@@ -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: