diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index a45bcdb71ae..61b47ae73b1 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -888,8 +888,12 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen, } } - if (!aux_enabled) - iris_resource_disable_aux(res); + if (!aux_enabled) { + if (res->mod_info && res->mod_info->aux_usage != ISL_AUX_USAGE_NONE) + goto fail; + else + iris_resource_disable_aux(res); + } return &res->base; |