zink: rename `zink_set_line_stipple_keys`
authorIgor Torrente <igor.torrente@collabora.com>
Tue, 29 Nov 2022 14:40:50 +0000 (11:40 -0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Dec 2022 12:37:13 +0000 (12:37 +0000)
This function will be used by another primitive emulation and
a more generic name will be needed.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20109>

src/gallium/drivers/zink/zink_draw.cpp
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h

index a8935db..17b0944 100644 (file)
@@ -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] = {
index f7533b2..a673795 100644 (file)
@@ -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 &&
index fb47467..73ad345 100644 (file)
@@ -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)