broadcom/vc5: Add missing support for 2101010_REV vertex attributes.
authorEric Anholt <eric@anholt.net>
Wed, 21 Mar 2018 21:44:04 +0000 (14:44 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Mar 2018 22:12:21 +0000 (15:12 -0700)
Fixes
GTF-GLES3.gtf.GL3Tests.vertex_type_2_10_10_10_rev.vertex_type_2_10_10_10_rev_invalid2,
where we hadn't thrown a GL error as needed in the extension-disabled
case.  We want to be exposing the extension anyway.

src/gallium/drivers/vc5/vc5_screen.c

index add5a2f3586655f8c6805562338c681007288615..2a42bc1b871239953a004a206259328f4720ad18 100644 (file)
@@ -481,6 +481,14 @@ vc5_screen_is_format_supported(struct pipe_screen *pscreen,
                 case PIPE_FORMAT_R8G8B8_SSCALED:
                 case PIPE_FORMAT_R8G8_SSCALED:
                 case PIPE_FORMAT_R8_SSCALED:
+                case PIPE_FORMAT_R10G10B10A2_UNORM:
+                case PIPE_FORMAT_B10G10R10A2_UNORM:
+                case PIPE_FORMAT_R10G10B10A2_SNORM:
+                case PIPE_FORMAT_B10G10R10A2_SNORM:
+                case PIPE_FORMAT_R10G10B10A2_USCALED:
+                case PIPE_FORMAT_B10G10R10A2_USCALED:
+                case PIPE_FORMAT_R10G10B10A2_SSCALED:
+                case PIPE_FORMAT_B10G10R10A2_SSCALED:
                         break;
                 default:
                         return FALSE;