From 03dc99475d4918635799710d81c4d73161cc033a Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 27 Jul 2018 20:25:21 -0700 Subject: [PATCH] iris: cube arrays are cubes too --- src/gallium/drivers/iris/iris_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 13802219123..889b14c142f 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -223,7 +223,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, isl_surf_usage_flags_t usage = pipe_bind_to_isl_usage(templ->bind); - if (templ->target == PIPE_TEXTURE_CUBE) + if (templ->target == PIPE_TEXTURE_CUBE || + templ->target == PIPE_TEXTURE_CUBE_ARRAY) usage |= ISL_SURF_USAGE_CUBE_BIT; // XXX: separate stencil... -- 2.30.2