llvmpipe: delay late screen creation until context init.
authorDave Airlie <airlied@redhat.com>
Tue, 20 Apr 2021 01:35:29 +0000 (11:35 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Apr 2021 02:09:13 +0000 (12:09 +1000)
commit4a384f587affa057797c9562f7de50b7679b9b04
treeebf9b947db42ecc9a827bb1c062ee176511af5aa
parent3172289d8b1bec597dfce600dac2fe8a0f0819b9
llvmpipe: delay late screen creation until context init.

This avoids a problem with lavapipe where the screen hangs around in the
vulkan instance but is just wasting resources.

This was pointed out by Mike Blumenkrantz

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10338>
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/llvmpipe/lp_screen.h