radeonsi: add BOs after need_cs_space
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 21:33:53 +0000 (17:33 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 25 Apr 2019 00:59:07 +0000 (20:59 -0400)
commit36cfe5fd62237bc49a0bea0c2aeeaf9e89b6f11c
tree264856fdeaa070a4942eaeb7cd21b24a156bef2b
parent45ca7798dc32c1cb7da8f94af9a7d7400ee9bc12
radeonsi: add BOs after need_cs_space

need_cs_space may clear the buffer list.

Fixes: 951d60f8cdc88 "radeonsi: delay adding BOs at the beginning of IBs until the first draw"
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_state_draw.c