mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 15:40:20 +01:00
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:
parent
0a418561da
commit
b280ea863d
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue