Mesa (main): lavapipe: handle cube-array image-views
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat May 29 07:43:58 UTC 2021
Module: Mesa
Branch: main
Commit: a5f41925a64928c1d3133307e92161c852f37305
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5f41925a64928c1d3133307e92161c852f37305
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Fri May 28 13:07:02 2021 +0200
lavapipe: handle cube-array image-views
It seems this was missed in the past.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10913>
---
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 e18a37aad53..308f239fb0d 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;
More information about the mesa-commit
mailing list