gallium: add type parameter to create_fence_fd
authorAndres Rodriguez <andresx7@gmail.com>
Mon, 4 Dec 2017 20:27:08 +0000 (15:27 -0500)
committerAndres Rodriguez <andresx7@gmail.com>
Tue, 30 Jan 2018 20:13:49 +0000 (15:13 -0500)
commit585daa237807ad4bc8ce3bf40610113333a529de
treeee2de49469b4f7e2bb369a819c755f697b383e4d
parent16dd0eb517407bcd3040b0f5f7eb31f1bdc48a48
gallium: add type parameter to create_fence_fd

An fd can potentially have different types of objects backing it.
Specifying the type helps us make sure we treat the FD correctly.

This is in preparation to allow importing syncobj fence FDs in addition
to native sync FDs.

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_tests.c
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/drivers/etnaviv/etnaviv_fence.c
src/gallium/drivers/etnaviv/etnaviv_fence.h
src/gallium/drivers/freedreno/freedreno_fence.c
src/gallium/drivers/freedreno/freedreno_fence.h
src/gallium/drivers/radeonsi/si_fence.c
src/gallium/drivers/svga/svga_pipe_flush.c
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_defines.h
src/gallium/state_trackers/dri/dri_helpers.c