radeonsi: add all resident buffers to the current CS
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 May 2017 22:55:14 +0000 (00:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 08:04:36 +0000 (10:04 +0200)
commit333c8f65cfd6f1153a614cef482b529778d3a6a6
treef2bdd8dc3972a80f5b50ee2941e5a7606104d04d
parent9cc328eef6e58cd16acf9262c49b851f8c3b04db
radeonsi: add all resident buffers to the current CS

Resident buffers have to be added to every new command stream.
Though, this could be slightly improved when current shaders
don't use any bindless textures/images but usually applications
tend to use bindless for almost every draw call, and the winsys
thread might help when buffers are added early.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_hw_context.c
src/gallium/drivers/radeonsi/si_state.h