From 3193eebb45b44a0a14989f62b35d80b94dbdf387 Mon Sep 17 00:00:00 2001 From: Igor Torrente Date: Tue, 29 Nov 2022 11:40:50 -0300 Subject: [PATCH] zink: rename `zink_set_line_stipple_keys` This function will be used by another primitive emulation and a more generic name will be needed. Part-of: --- src/gallium/drivers/zink/zink_draw.cpp | 2 +- src/gallium/drivers/zink/zink_program.c | 2 +- src/gallium/drivers/zink/zink_program.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_draw.cpp b/src/gallium/drivers/zink/zink_draw.cpp index a8935db..17b0944 100644 --- a/src/gallium/drivers/zink/zink_draw.cpp +++ b/src/gallium/drivers/zink/zink_draw.cpp @@ -550,7 +550,7 @@ zink_draw(struct pipe_context *pctx, if (lines_changed || rast_state_changed || ctx->gfx_pipeline_state.modules_changed) - zink_set_line_stipple_keys(ctx); + zink_set_primitive_emulation_keys(ctx); if (index_size) { const VkIndexType index_type[3] = { diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index f7533b2..a673795 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -1836,7 +1836,7 @@ zink_driver_thread_add_job(struct pipe_screen *pscreen, void *data, } void -zink_set_line_stipple_keys(struct zink_context *ctx) +zink_set_primitive_emulation_keys(struct zink_context *ctx) { struct zink_screen *screen = zink_screen(ctx->base.screen); bool lower_line_stipple = ctx->gfx_pipeline_state.rast_prim == PIPE_PRIM_LINES && diff --git a/src/gallium/drivers/zink/zink_program.h b/src/gallium/drivers/zink/zink_program.h index fb47467..73ad345 100644 --- a/src/gallium/drivers/zink/zink_program.h +++ b/src/gallium/drivers/zink/zink_program.h @@ -341,7 +341,7 @@ zink_set_fs_point_coord_key(struct zink_context *ctx) } void -zink_set_line_stipple_keys(struct zink_context *ctx); +zink_set_primitive_emulation_keys(struct zink_context *ctx); static inline const struct zink_shader_key_base * zink_get_shader_key_base(struct zink_context *ctx, gl_shader_stage pstage) -- 2.7.4