projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d849501
)
iris: actually set cube bit properly
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 4 Jul 2018 22:34:24 +0000
(15:34 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000
(10:26 -0800)
src/gallium/drivers/iris/iris_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_state.c
b/src/gallium/drivers/iris/iris_state.c
index 74c7937d00b992edac1e37ee1f693b4a82dbf9fb..fa80c5d4db9c1aa33158b5f9ed555fea96f15d85 100644
(file)
--- 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,