tc: add a function to check the internal buffer lists

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36715>
This commit is contained in:
Mike Blumenkrantz 2025-08-05 16:07:34 -04:00 committed by Marge Bot
parent 5d8ccf5986
commit e4da10b4cb
2 changed files with 13 additions and 0 deletions

View file

@ -5696,3 +5696,14 @@ threaded_context_get_renderpass_info(struct threaded_context *tc)
info = info->next;
}
}
bool
threaded_context_is_buffer_on_busy_list(struct pipe_context *_pipe, struct pipe_resource *resource)
{
struct threaded_context *tc = threaded_context(_pipe);
struct threaded_resource *tres = threaded_resource(resource);
assert(resource->target == PIPE_BUFFER);
return tc_is_buffer_on_busy_list(tc, tres);
}

View file

@ -869,6 +869,8 @@ tc_set_vertex_elements_for_call(struct pipe_vertex_buffer *buffers,
ptr[-1] = state;
}
bool
threaded_context_is_buffer_on_busy_list(struct pipe_context *_pipe, struct pipe_resource *resource);
#ifdef __cplusplus
}
#endif