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);
#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;
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));
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;
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;