iris: cube arrays are cubes too
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Jul 2018 03:25:21 +0000 (20:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_resource.c

index 1380221912307e4bebc9199313fccdbbf61992c6..889b14c142f97dbe01e6f5a15388a7745bde75e7 100644 (file)
@@ -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...