turnip: use DIRTY SDS bit to avoid making copies of pipeline load state ib
authorJonathan Marek <jonathan@marek.ca>
Thu, 18 Jun 2020 17:07:48 +0000 (13:07 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 17:00:07 +0000 (17:00 +0000)
commitdce6cb11961f8e3b9106b89205adea1ee899e599
tree73177a349de544e7dd9afc82fba0564ebab37caa
parent2e488305d653de424ec670c23f178c58ed49e44c
turnip: use DIRTY SDS bit to avoid making copies of pipeline load state ib

Some testing showed that the DIRTY bit has the desired behavior, so use it
to make things a bit simpler.

Note in CmdBindPipeline, having the TU_CMD_DIRTY_DESCRIPTOR_SETS behind a
if(pipeline->layout->dynamic_offset_count) was wrong.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5558>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_private.h