From: Kenneth Graunke Date: Sat, 28 Jul 2018 03:25:21 +0000 (-0700) Subject: iris: cube arrays are cubes too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03dc99475d4918635799710d81c4d73161cc033a;p=mesa.git iris: cube arrays are cubes too --- 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...