zink: use modifier_aspect to check for modifier plane in zink_resource_get_param

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17775>
(cherry picked from commit c824a53f35)
This commit is contained in:
Mike Blumenkrantz 2022-08-02 12:27:59 -04:00 committed by Dylan Baker
parent fda5f3f630
commit 9234bdebed
2 changed files with 2 additions and 2 deletions

View file

@ -391,7 +391,7 @@
"description": "zink: use modifier_aspect to check for modifier plane in zink_resource_get_param",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1284,7 +1284,7 @@ zink_resource_get_param(struct pipe_screen *pscreen, struct pipe_context *pctx,
struct zink_resource_object *obj = res->obj;
struct winsys_handle whandle;
VkImageAspectFlags aspect;
if (res->modifiers) {
if (obj->modifier_aspect) {
switch (plane) {
case 0:
aspect = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT;