radeonsi: set up IBs for preemption
authorMarek Olšák <marek.olsak@amd.com>
Thu, 18 Jun 2020 05:06:12 +0000 (01:06 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jul 2020 16:08:33 +0000 (12:08 -0400)
commit9e2113c6dc132707db19461b77c8001b5475156a
tree01c835fc2e54cd0cca6a6b9a8e0ad6cc89445fc4
parentb8892bc81820884cd42ada8699d0c28cb8e39dda
radeonsi: set up IBs for preemption

- Execute cs_preamble_state as a separate IB with different flags.
- Set the PREEMPT flag for the main IB.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5798>
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/drivers/radeonsi/si_cp_reg_shadowing.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.h