panfrost: Allow PIPE_TEXTURE_1D_ARRAY textures
authorIcecream95 <ixn@keemail.me>
Mon, 27 Jul 2020 09:55:59 +0000 (21:55 +1200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 13:30:32 +0000 (13:30 +0000)
Fixes a crash with wined3d.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6085>

src/gallium/drivers/panfrost/pan_resource.c

index f03cd9c4ea35d2b414cef9e42317e500449f95c3..08ec83cd195fa2292fcba173b329461173dc3a27 100644 (file)
@@ -484,6 +484,7 @@ panfrost_resource_create(struct pipe_screen *screen,
         case PIPE_TEXTURE_3D:
         case PIPE_TEXTURE_CUBE:
         case PIPE_TEXTURE_RECT:
+        case PIPE_TEXTURE_1D_ARRAY:
         case PIPE_TEXTURE_2D_ARRAY:
                 break;
         default: