radeonsi: fix user fence space when MCBP is enabled
authorQiang Yu <yuq825@gmail.com>
Thu, 3 Sep 2020 03:30:28 +0000 (11:30 +0800)
committerVivek Pandya <vivekvpandya@gmail.com>
Mon, 7 Sep 2020 15:55:16 +0000 (21:25 +0530)
commitcaf2ff491e64033e0a9cd7f399c99a90c0d49a3b
tree29fff0aa5c9c8a5d6c263ae658b6c5f855c8a010
parent73128dd46e12fb778e8a5fce3ee873d1ffa3f4d3
radeonsi: fix user fence space when MCBP is enabled

When MCBP is enabled, IB maybe preempted which will also update
the preempted fence field of the user fence. So we need to reserve
enough space for each user fence.

Fixes: 89d2dac5548 "radeonsi: enable preemption if the kernel enabled it"
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6577>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c