radv: emit the initial config only once in the preambles

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 14 September 2018 08:59 EDT

It shouldn't be needed to emit the initial graphics or compute state when beginning a new command buffer. Emitting them in the preamble should be enough and this will reduce IB sizes.

c79aad30ae radv: emit the initial config only once in the preambles
src/amd/vulkan/radv_cmd_buffer.c | 29 -----------------------------
src/amd/vulkan/radv_device.c | 39 +++++++++++++++++++++++++++++++++++++++
src/amd/vulkan/radv_private.h | 6 ++++--
src/amd/vulkan/si_cmd_buffer.c | 24 +++++-------------------
4 files changed, 48 insertions(+), 50 deletions(-)

Upstream: cgit.freedesktop.org


  • Share