mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
iris: fix cube texture view
This commit is contained in:
parent
39d1056d10
commit
00645ea01c
1 changed files with 4 additions and 0 deletions
|
|
@ -1518,6 +1518,10 @@ iris_create_sampler_view(struct pipe_context *ctx,
|
|||
ISL_SURF_USAGE_TEXTURE_BIT |
|
||||
(isv->res->surf.usage & ISL_SURF_USAGE_CUBE_BIT);
|
||||
|
||||
if (isv->base.target == PIPE_TEXTURE_CUBE ||
|
||||
isv->base.target == PIPE_TEXTURE_CUBE_ARRAY)
|
||||
usage |= ISL_SURF_USAGE_CUBE_BIT;
|
||||
|
||||
const struct iris_format_info fmt =
|
||||
iris_format_for_usage(devinfo, tmpl->format, usage);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue