From a5f41925a64928c1d3133307e92161c852f37305 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 28 May 2021 13:07:02 +0200 Subject: [PATCH] lavapipe: handle cube-array image-views It seems this was missed in the past. Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index e18a37a..308f239 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -855,6 +855,8 @@ static void fill_sampler_view_stage(struct rendering_state *state, templ.target = PIPE_TEXTURE_2D; if (iv->view_type == VK_IMAGE_VIEW_TYPE_CUBE) templ.target = PIPE_TEXTURE_CUBE; + if (iv->view_type == VK_IMAGE_VIEW_TYPE_CUBE_ARRAY) + templ.target = PIPE_TEXTURE_CUBE_ARRAY; templ.u.tex.first_layer = iv->subresourceRange.baseArrayLayer; templ.u.tex.last_layer = iv->subresourceRange.baseArrayLayer + lvp_get_layerCount(iv->image, &iv->subresourceRange) - 1; templ.u.tex.first_level = iv->subresourceRange.baseMipLevel; -- 2.7.4