zink: handle modifier nplanes queries correctly for planar formats
this just returns the number of planes in the base format as a default, which matches the behavior of other drivers cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20753>
This commit is contained in:

committed by
Marge Bot

parent
072e29a22e
commit
6ff334e54a
@@ -2149,7 +2149,7 @@ zink_get_dmabuf_modifier_planes(struct pipe_screen *pscreen, uint64_t modifier,
|
||||
for (unsigned i = 0; i < screen->modifier_props[format].drmFormatModifierCount; i++)
|
||||
if (screen->modifier_props[format].pDrmFormatModifierProperties[i].drmFormatModifier == modifier)
|
||||
return screen->modifier_props[format].pDrmFormatModifierProperties[i].drmFormatModifierPlaneCount;
|
||||
return 0;
|
||||
return util_format_get_num_planes(format);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user