anv: Re-use flush_descriptor_sets in flush_compute_state
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 7 Jan 2020 16:00:54 +0000 (10:00 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 10 Jan 2020 01:45:00 +0000 (19:45 -0600)
commit9b711714425ddc6ebe8497e155d0f6530c3ab4c8
treefbc919c26c0adc5f4a78dfcf8b8db5e93a7ff5cb
parentae72d1238c758404df045a82c36803dbccd93b31
anv: Re-use flush_descriptor_sets in flush_compute_state

There's no reason to hand-roll all of the memory re-allocation fall-back
code for compute shaders.  It's  just duplicated complexity.  This also
makes it more clear in flush_compute_state where the
MEDIA_INTERFACE_DESCRIPTOR_LOAD command gets emitted relative to other
packets in the command stream.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/genX_cmd_buffer.c