From c0ab9c9890a34720b4580971c0ace16cc0cf52f9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 4 Jul 2018 15:34:24 -0700 Subject: [PATCH] iris: actually set cube bit properly --- src/gallium/drivers/iris/iris_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 74c7937d00b..fa80c5d4db9 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1016,7 +1016,8 @@ iris_create_sampler_view(struct pipe_context *ctx, .b = pipe_swizzle_to_isl_channel(tmpl->swizzle_b), .a = pipe_swizzle_to_isl_channel(tmpl->swizzle_a), }, - .usage = ISL_SURF_USAGE_TEXTURE_BIT, + .usage = ISL_SURF_USAGE_TEXTURE_BIT | + (itex->surf.usage & ISL_SURF_USAGE_CUBE_BIT), }; void *map = upload_state(ice->state.surface_uploader, &isv->surface_state, -- 2.30.2