From: Kenneth Graunke Date: Wed, 4 Jul 2018 22:34:24 +0000 (-0700) Subject: iris: actually set cube bit properly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0ab9c9890a34720b4580971c0ace16cc0cf52f9;p=mesa.git iris: actually set cube bit properly --- 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,