zink: also init format props when getting modifier props
forgot this in earlier refactor Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31467>
This commit is contained in:
committed by
Marge Bot
parent
efeb65cfe8
commit
3c44886d9e
@@ -157,6 +157,8 @@ zink_init_format_props(struct zink_screen *screen, enum pipe_format pformat);
|
||||
static inline const struct zink_modifier_props *
|
||||
zink_get_modifier_props(struct zink_screen *screen, enum pipe_format pformat)
|
||||
{
|
||||
if (unlikely(!screen->format_props_init[pformat]))
|
||||
zink_init_format_props(screen, pformat);
|
||||
return &screen->modifier_props[pformat];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user