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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user