Lines Matching refs:shaders
42 struct radv_shader *shaders[MESA_VULKAN_SHADER_STAGES];
93 * we don't get the debug info on cached shaders. */
106 if (cache->hash_table[i]->shaders[j])
107 radv_shader_destroy(cache->device, cache->hash_table[i]->shaders[j]);
374 if (!entry->shaders[i] && entry->binary_sizes[i]) {
379 entry->shaders[i] = radv_shader_create(device, binary, false, true, NULL);
388 memcpy(pipeline->shaders, entry->shaders, sizeof(entry->shaders));
390 if (pipeline->shaders[MESA_SHADER_GEOMETRY] &&
391 !pipeline->shaders[MESA_SHADER_GEOMETRY]->info.is_ngg) {
393 pipeline->gs_copy_shader = pipeline->shaders[MESA_SHADER_COMPUTE];
394 pipeline->shaders[MESA_SHADER_COMPUTE] = NULL;
402 if (pipeline->shaders[i])
434 if (entry->shaders[i])
435 p_atomic_inc(&entry->shaders[i]->ref_count);
458 if (!entry->shaders[i])
461 radv_shader_destroy(cache->device, pipeline->shaders[i]);
463 pipeline->shaders[i] = entry->shaders[i];
464 p_atomic_inc(&pipeline->shaders[i]->ref_count);
486 if (pipeline->shaders[i])
503 if (!pipeline->shaders[i])
524 * compiled shaders by third parties such as steam, even if the app
527 * Make sure to exclude meta shaders because they are stored in a different cache file.
547 if (!pipeline->shaders[i])
550 entry->shaders[i] = pipeline->shaders[i];
551 p_atomic_inc(&pipeline->shaders[i]->ref_count);
598 dest_entry->shaders[i] = NULL;
696 ((struct cache_entry *)p)->shaders[j] = NULL;