radv: check that pipeline is different before binding it
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 4 Oct 2017 20:27:38 +0000 (22:27 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 4 Oct 2017 21:18:48 +0000 (23:18 +0200)
commitb53c207659e65a29081c0f26b189f37fdd895406
tree72e494952a9b819e93d1e2327d37594a45c0de92
parent2572c2771d0cab0b9bc489d354ede44dfc88547b
radv: check that pipeline is different before binding it

We only need to dirty the descriptors when the pipeline is
a new one, because user SGPRs can be potentially different.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c