panfrost: Move scanout res creation out of panfrost_resource_create()
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 08:12:10 +0000 (10:12 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:57:35 +0000 (14:57 +0200)
commit6608642d213cb7e13d64fcdfaefe06c9196997e4
tree541be69b1e3708774557c72e5718a497e34f8fb7
parent873b7b93e81accf9c241ac5a12b84cc29b94601e
panfrost: Move scanout res creation out of panfrost_resource_create()

Which improves readability and help us avoid a memory leak.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_resource.c