zink: gfx_pipeline_cache_entry -> zink_gfx_pipeline_cache_entry
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 2 Oct 2022 12:11:30 +0000 (08:11 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Oct 2022 17:02:14 +0000 (17:02 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18961>

src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h
src/gallium/drivers/zink/zink_program_state.hpp
src/gallium/drivers/zink/zink_types.h

index 3751a86..c1a183b 100644 (file)
@@ -1147,7 +1147,7 @@ zink_destroy_gfx_program(struct zink_screen *screen,
    for (unsigned r = 0; r < ARRAY_SIZE(prog->pipelines); r++) {
       for (int i = 0; i < max_idx; ++i) {
          hash_table_foreach(&prog->pipelines[r][i], entry) {
-            struct gfx_pipeline_cache_entry *pc_entry = entry->data;
+            struct zink_gfx_pipeline_cache_entry *pc_entry = entry->data;
 
             VKSCR(DestroyPipeline)(screen->dev, pc_entry->pipeline, NULL);
             free(pc_entry);
index 335f1bb..7cabc4b 100644 (file)
@@ -30,15 +30,6 @@ extern "C" {
 #endif
 #include "util/u_prim.h"
 
-struct gfx_pipeline_cache_entry {
-   struct zink_gfx_pipeline_state state;
-   VkPipeline pipeline;
-   /* GPL only */
-   struct zink_gfx_input_key *ikey;
-   struct zink_gfx_library_key *gkey;
-   struct zink_gfx_output_key *okey;
-};
-
 struct compute_pipeline_cache_entry {
    struct zink_compute_pipeline_state state;
    VkPipeline pipeline;
index ae52a9b..fe6ab93 100644 (file)
@@ -217,7 +217,7 @@ zink_get_gfx_pipeline(struct zink_context *ctx,
    if (!entry) {
       util_queue_fence_wait(&prog->base.cache_fence);
       VkPipeline pipeline = VK_NULL_HANDLE;
-      struct gfx_pipeline_cache_entry *pc_entry = CALLOC_STRUCT(gfx_pipeline_cache_entry);
+      struct zink_gfx_pipeline_cache_entry *pc_entry = CALLOC_STRUCT(zink_gfx_pipeline_cache_entry);
       if (!pc_entry)
          return VK_NULL_HANDLE;
       memcpy(&pc_entry->state, state, sizeof(*state));
@@ -256,7 +256,7 @@ zink_get_gfx_pipeline(struct zink_context *ctx,
       pc_entry->pipeline = pipeline;
    }
 
-   struct gfx_pipeline_cache_entry *cache_entry = (struct gfx_pipeline_cache_entry *)entry->data;
+   struct zink_gfx_pipeline_cache_entry *cache_entry = (struct zink_gfx_pipeline_cache_entry *)entry->data;
    state->pipeline = cache_entry->pipeline;
    if (DYNAMIC_STATE >= ZINK_DYNAMIC_VERTEX_INPUT) {
       prog->last_finalized_hash[rp_idx][idx] = state->final_hash;
index 7e1465f..3c5b431 100644 (file)
@@ -826,6 +826,15 @@ struct zink_gfx_output_key {
    VkPipeline pipeline;
 };
 
+struct zink_gfx_pipeline_cache_entry {
+   struct zink_gfx_pipeline_state state;
+   VkPipeline pipeline;
+   /* GPL only */
+   struct zink_gfx_input_key *ikey;
+   struct zink_gfx_library_key *gkey;
+   struct zink_gfx_output_key *okey;
+};
+
 struct zink_gfx_program {
    struct zink_program base;