radv: add radeon_set_context_reg_rmw() helper
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Apr 2020 09:38:33 +0000 (11:38 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Apr 2020 09:31:33 +0000 (11:31 +0200)
commitcb6ab17d1fffe2f387ce4ec7691f926260091118
treeafe1ca4eca4f1a587069ead3191f65373fd2b73f
parentf0b94262c18284dc61755634f01eb78051b4423e
radv: add radeon_set_context_reg_rmw() helper

For emitting RMW packets in the command stream. This new helper
will be useful for implementing extended dynamic states to only
overwrite the fields that need to be updated instead of storing
more values in the pipeline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4531>
src/amd/vulkan/radv_cs.h