OSDN Git Service

radeonsi: set a per-buffer flag that disables inter-process sharing (v4)
authorMarek Olšák <marek.olsak@amd.com>
Tue, 18 Jul 2017 20:08:44 +0000 (16:08 -0400)
committerChristian König <christian.koenig@amd.com>
Thu, 31 Aug 2017 12:55:21 +0000 (14:55 +0200)
commit8b3a257851905ff444d981e52938cbf2b36ba830
treede5c62f1052f5a0e025ebadc7599d1d4e6e79ebb
parent5ae2de81c8350272c122ea38e6bb4c0a41d58921
radeonsi: set a per-buffer flag that disables inter-process sharing (v4)

For lower overhead in the CS ioctl.
Winsys allocators are not used with interprocess-sharable resources.

v2: It shouldn't crash anymore, but the kernel will reject the new flag.
v3 (christian): Rename the flag, avoid sending those buffers in the BO list.
v4 (christian): Remove setting the kernel flag for now

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/radeon/drm/radeon_drm_bo.c