mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
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:
parent
fda5f3f630
commit
9234bdebed
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue