gallium: add pipe_screen::driver_thread_add_job
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 12 Aug 2022 18:30:58 +0000 (14:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 10 Sep 2022 19:01:56 +0000 (19:01 +0000)
commitb36a741aa4342a147772c7d2026c8dfd2936ce12
tree4422db2a58e6dad90b03023e07c2d438084cabcf
parent6b8339fa5429cf3eaa6ced53833a81535721912c
gallium: add pipe_screen::driver_thread_add_job

this allows a frontend to punt creation of a nir shader down to the
driver's compilation thread, which is useful in the event that the
shader being created is so big that it will cause immediate blocking
from running common nir passes

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18198>
src/gallium/auxiliary/driver_trace/tr_screen.c
src/gallium/include/pipe/p_screen.h