mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
zink: remove screen param from zink_descriptors_update()
this was redundant Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10699>
This commit is contained in:
parent
987b0eb638
commit
e3933548c2
3 changed files with 4 additions and 4 deletions
|
|
@ -1313,7 +1313,7 @@ static void
|
|||
zink_context_update_descriptor_states(struct zink_context *ctx, bool is_compute);
|
||||
|
||||
void
|
||||
zink_descriptors_update(struct zink_context *ctx, struct zink_screen *screen, bool is_compute)
|
||||
zink_descriptors_update(struct zink_context *ctx, bool is_compute)
|
||||
{
|
||||
struct zink_program *pg = is_compute ? (struct zink_program *)ctx->curr_compute : (struct zink_program *)ctx->curr_program;
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ void
|
|||
zink_descriptor_program_deinit(struct zink_screen *screen, struct zink_program *pg);
|
||||
|
||||
void
|
||||
zink_descriptors_update(struct zink_context *ctx, struct zink_screen *screen, bool is_compute);
|
||||
zink_descriptors_update(struct zink_context *ctx, bool is_compute);
|
||||
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ zink_draw_vbo(struct pipe_context *pctx,
|
|||
}
|
||||
|
||||
if (gfx_program->base.has_descriptors)
|
||||
zink_descriptors_update(ctx, screen, false);
|
||||
zink_descriptors_update(ctx, false);
|
||||
|
||||
struct zink_batch *batch = zink_batch_rp(ctx);
|
||||
VkViewport viewports[PIPE_MAX_VIEWPORTS];
|
||||
|
|
@ -734,7 +734,7 @@ zink_launch_grid(struct pipe_context *pctx, const struct pipe_grid_info *info)
|
|||
&ctx->compute_pipeline_state);
|
||||
|
||||
if (comp_program->base.has_descriptors)
|
||||
zink_descriptors_update(ctx, screen, true);
|
||||
zink_descriptors_update(ctx, true);
|
||||
|
||||
|
||||
vkCmdBindPipeline(batch->state->cmdbuf, VK_PIPELINE_BIND_POINT_COMPUTE, pipeline);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue