freedreno/ir3: move the libdrm dependency out of shared code
authorRob Clark <robdclark@chromium.org>
Fri, 5 Jun 2020 19:56:04 +0000 (12:56 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Jun 2020 15:46:37 +0000 (15:46 +0000)
commit1a33faea8c514599e5b770a56e741103a9401d49
treeb94bf96aa57c8344e6c56b60ad344cb915718bdf
parent43e0062c5b3762ec6a07398d0872b174404ef0ab
freedreno/ir3: move the libdrm dependency out of shared code

The only reason for this dependency was the fd_bo used for the uploaded
shader.  But this isn't used by turnip.  Now that we've unified the
cleanup path from gallium, it isn't hard to pull the fd_bo upload/free
parts into ir3_gallium.

This cleanup has the added benefit that the shader disk-cache will not
have to deal with it.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5476>
src/freedreno/ir3/ir3_shader.c
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c