virgl: fill the array_size value when using PIPE_TEXTURE_CUBE

The cube texture type also requires array sizes.

Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26005>
This commit is contained in:
Corentin Noël 2023-10-31 17:57:13 +01:00 committed by Marge Bot
parent 0a418561da
commit b280ea863d

View file

@ -99,6 +99,7 @@ static void virgl_init_temp_resource_from_box(struct pipe_resource *res,
res->bind = PIPE_BIND_RENDER_TARGET;
switch (res->target) {
case PIPE_TEXTURE_CUBE:
case PIPE_TEXTURE_1D_ARRAY:
case PIPE_TEXTURE_2D_ARRAY:
case PIPE_TEXTURE_CUBE_ARRAY: