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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user