radeonsi: remove no-op unref in si_set_constant_buffer

buffer is already NULL here

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11340>
This commit is contained in:
Marek Olšák 2021-06-13 13:58:16 -04:00 committed by Marge Bot
parent a29ff4c67e
commit 42801731b8

View file

@ -1148,7 +1148,6 @@ static void si_set_constant_buffer(struct si_context *sctx, struct si_buffer_res
}
} else {
if (take_ownership) {
pipe_resource_reference(&buffer, NULL);
buffer = input->buffer;
} else {
pipe_resource_reference(&buffer, input->buffer);