v3dv: remove some unnecessary / unused functions

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-05-25 10:28:07 +02:00 committed by Marge Bot
parent e048eba81a
commit 8e4cf16da9
3 changed files with 0 additions and 22 deletions

View file

@ -35,21 +35,6 @@ v3dv_cl_init(struct v3dv_job *job, struct v3dv_cl *cl)
list_inithead(&cl->bo_list);
}
void
v3dv_cl_begin(struct v3dv_cl *cl)
{
assert(v3dv_cl_offset(cl) == 0);
}
void
v3dv_cl_reset(struct v3dv_cl *cl)
{
/* FIXME: consider keeping the BO when the command buffer is reset with
* flag VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT.
*/
v3dv_cl_init(cl->job, cl);
}
void
v3dv_cl_destroy(struct v3dv_cl *cl)
{

View file

@ -86,8 +86,6 @@ v3dv_cl_get_address(struct v3dv_cl *cl)
}
void v3dv_cl_init(struct v3dv_job *job, struct v3dv_cl *cl);
void v3dv_cl_begin(struct v3dv_cl *cl);
void v3dv_cl_reset(struct v3dv_cl *cl);
void v3dv_cl_destroy(struct v3dv_cl *cl);
static inline struct v3dv_cl_out *

View file

@ -634,13 +634,8 @@ v3dv_job_init(struct v3dv_job *job,
job->bo_count = 0;
v3dv_cl_init(job, &job->bcl);
v3dv_cl_begin(&job->bcl);
v3dv_cl_init(job, &job->rcl);
v3dv_cl_begin(&job->rcl);
v3dv_cl_init(job, &job->indirect);
v3dv_cl_begin(&job->indirect);
if (V3D_DEBUG & V3D_DEBUG_ALWAYS_FLUSH)
job->always_flush = true;