summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-07-27 20:25:21 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:08 -0800
commit03dc99475d4918635799710d81c4d73161cc033a (patch)
treeb08380645b214775cca349bf184211904580760a /src
parent80c70966728f843f0fffe9236fa1b04205d44160 (diff)
iris: cube arrays are cubes too
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_resource.c3
1 files changed, 2 insertions, 1 deletions
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...