mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01: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>
This commit is contained in:
parent
b59eb9c8b7
commit
c824a53f35
1 changed files with 1 additions and 1 deletions
|
|
@ -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