mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 09:50:20 +01:00
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:
parent
5d8ccf5986
commit
e4da10b4cb
2 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue