summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_image.c b/src/gallium/drivers/freedreno/a6xx/fd6_image.c
index d41a8887a53..5683612c51c 100644
--- a/src/gallium/drivers/freedreno/a6xx/fd6_image.c
+++ b/src/gallium/drivers/freedreno/a6xx/fd6_image.c
@@ -70,6 +70,10 @@ static void translate_image(struct fd6_image *img, const struct pipe_image_view
img->cpp = rsc->cpp;
img->bo = rsc->bo;
+ /* Treat cube textures as 2d-array: */
+ if (img->type == A6XX_TEX_CUBE)
+ img->type = A6XX_TEX_2D;
+
if (prsc->target == PIPE_BUFFER) {
img->buffer = true;
img->offset = pimg->u.buf.offset;