freedreno: Refactor fd_resource_create_with_modifiers() into a helper
authorEduardo Lima Mitev <elima@igalia.com>
Tue, 18 Aug 2020 08:04:02 +0000 (10:04 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 20:40:40 +0000 (20:40 +0000)
commit536ec9d7f5ab3bba904090abf7b3fc58e92eec78
treec8368da8fde31d90300e35ba0479d840bd823ffc
parent0eecd3d68466327567df7da468cc2088a652e22f
freedreno: Refactor fd_resource_create_with_modifiers() into a helper

The helper just allocates and resolves layout, but does not deal with
scanout buffers nor allocation of the actual bo.

The resolved bo size is returned as an output argument.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4565>
src/gallium/drivers/freedreno/freedreno_resource.c