Lines Matching defs:device

52 anv_shader_stage_to_nir(struct anv_device *device,
56 const struct anv_physical_device *pdevice = device->physical;
84 .image_read_without_format = instance->vk.app_info.api_version >= VK_API_VERSION_1_3 || device->vk.enabled_extensions.KHR_format_feature_flags2,
122 anv_nir_ubo_addr_format(pdevice, device->robust_buffer_access),
124 anv_nir_ssbo_addr_format(pdevice, device->robust_buffer_access),
137 vk_pipeline_shader_stage_to_nir(&device->vk, stage_info,
175 struct anv_device *device,
184 vk_object_base_init(&device->vk, &pipeline->base,
186 pipeline->device = device;
191 pipeline->batch.alloc = pAllocator ? pAllocator : &device->vk.alloc;
212 struct anv_device *device,
216 pAllocator ? pAllocator : &device->vk.alloc);
226 ANV_FROM_HANDLE(anv_device, device, _device);
239 anv_shader_bin_unref(device, gfx_pipeline->shaders[s]);
249 anv_shader_bin_unref(device, compute_pipeline->cs);
260 anv_shader_bin_unref(device, *shader);
269 anv_pipeline_finish(pipeline, device, pAllocator);
270 vk_free2(&device->vk.alloc, pAllocator, pipeline);
304 populate_base_prog_key(const struct anv_device *device,
310 device->physical->instance->limit_trig_input_range;
312 populate_sampler_prog_key(&device->info, &key->tex);
316 populate_vs_prog_key(const struct anv_device *device,
322 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
330 populate_tcs_prog_key(const struct anv_device *device,
337 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
343 populate_tes_prog_key(const struct anv_device *device,
349 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
353 populate_gs_prog_key(const struct anv_device *device,
359 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
415 populate_task_prog_key(const struct anv_device *device,
421 populate_base_prog_key(device, robust_buffer_access, &key->base);
425 populate_mesh_prog_key(const struct anv_device *device,
431 populate_base_prog_key(device, robust_buffer_access, &key->base);
443 const struct anv_device *device = pipeline->base.device;
447 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
484 if (device->physical->instance->sample_mask_out_opengl_behaviour)
490 device->vk.enabled_extensions.KHR_fragment_shading_rate &&
495 populate_cs_prog_key(const struct anv_device *device,
501 populate_base_prog_key(device, robust_buffer_acccess, &key->base);
505 populate_bs_prog_key(const struct anv_device *device,
511 populate_base_prog_key(device, robust_buffer_access, &key->base);
562 const bool rba = pipeline->base.device->robust_buffer_access;
588 const struct anv_device *device = pipeline->base.device;
590 const bool rba = device->robust_buffer_access;
593 const bool afs = device->physical->instance->assume_full_subgroups;
615 const bool rba = pipeline->base.device->robust_buffer_access;
637 const bool rba = pipeline->base.device->robust_buffer_access;
655 pipeline->device->physical->compiler;
660 nir = anv_device_search_for_nir(pipeline->device, cache,
669 nir = anv_shader_stage_to_nir(pipeline->device, stage->info, mem_ctx);
671 anv_device_upload_nir(pipeline->device, cache, nir, stage->shader_sha1);
696 const struct anv_physical_device *pdevice = pipeline->device->physical;
731 pdevice, pipeline->device->robust_buffer_access,
736 pipeline->device->robust_buffer_access));
739 pipeline->device->robust_buffer_access));
761 pdevice, pipeline->device->robust_buffer_access,
830 .log_data = pipeline->base.device,
906 struct anv_device *device,
922 .log_data = device,
940 struct anv_device *device,
957 .log_data = device,
975 struct anv_device *device,
991 .log_data = device,
1010 struct anv_device *device,
1020 .log_data = device,
1039 struct anv_device *device,
1050 .log_data = device,
1126 struct anv_device *device,
1142 .log_data = device,
1234 intel_disassemble(&pipeline->device->physical->compiler->isa,
1327 const struct anv_device *device = pipeline->base.device;
1330 populate_vs_prog_key(device,
1331 pipeline->base.device->robust_buffer_access,
1335 populate_tcs_prog_key(device,
1336 pipeline->base.device->robust_buffer_access,
1341 populate_tes_prog_key(device,
1342 pipeline->base.device->robust_buffer_access,
1346 populate_gs_prog_key(device,
1347 pipeline->base.device->robust_buffer_access,
1352 pipeline->base.device->robust_buffer_access,
1358 populate_task_prog_key(device,
1359 pipeline->base.device->robust_buffer_access,
1363 populate_mesh_prog_key(device,
1364 pipeline->base.device->robust_buffer_access,
1395 anv_device_search_for_kernel(pipeline->base.device, cache,
1434 &pipeline->base.device->vk.base),
1446 anv_shader_bin_unref(pipeline->base.device, pipeline->shaders[s]);
1515 const struct brw_compiler *compiler = pipeline->base.device->physical->compiler;
1592 if (pipeline->base.device->info.ver >= 12 &&
1645 const struct intel_device_info *devinfo = &pipeline->base.device->info;
1685 anv_pipeline_compile_tcs(compiler, stage_ctx, pipeline->base.device,
1689 anv_pipeline_compile_tes(compiler, stage_ctx, pipeline->base.device,
1693 anv_pipeline_compile_gs(compiler, stage_ctx, pipeline->base.device,
1697 anv_pipeline_compile_task(compiler, stage_ctx, pipeline->base.device,
1701 anv_pipeline_compile_mesh(compiler, stage_ctx, pipeline->base.device,
1705 anv_pipeline_compile_fs(compiler, stage_ctx, pipeline->base.device,
1713 result = vk_error(pipeline->base.device, VK_ERROR_OUT_OF_HOST_MEMORY);
1721 anv_device_upload_kernel(pipeline->base.device, cache, s,
1773 anv_shader_bin_unref(pipeline->base.device, pipeline->shaders[s]);
1792 struct anv_device *device = pipeline->base.device;
1793 const struct brw_compiler *compiler = device->physical->compiler;
1809 populate_cs_prog_key(device, device->robust_buffer_access, &stage.key.cs);
1820 bin = anv_device_search_for_kernel(device, cache,
1863 if (device->physical->instance->assume_full_subgroups &&
1886 .log_data = device,
1904 bin = anv_device_upload_kernel(device, cache,
1949 anv_compute_pipeline_create(struct anv_device *device,
1960 pipeline = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*pipeline), 8,
1963 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1965 result = anv_pipeline_init(&pipeline->base, device,
1969 vk_free2(&device->vk.alloc, pAllocator, pipeline);
1978 anv_pipeline_finish(&pipeline->base, device, pAllocator);
1979 vk_free2(&device->vk.alloc, pAllocator, pipeline);
1983 anv_genX(&device->info, compute_pipeline_emit)(pipeline);
1998 ANV_FROM_HANDLE(anv_device, device, _device);
2005 VkResult res = anv_compute_pipeline_create(device, pipeline_cache,
2041 const struct intel_device_info *devinfo = &pipeline->device->info;
2051 struct anv_device *device,
2059 result = anv_pipeline_init(&pipeline->base, device,
2076 assert(device->physical->vk.supported_extensions.NV_mesh_shader);
2087 anv_pipeline_finish(&pipeline->base, device, alloc);
2153 anv_graphics_pipeline_create(struct anv_device *device,
2164 pipeline = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*pipeline), 8,
2167 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
2171 result = vk_graphics_pipeline_state_fill(&device->vk, &state, pCreateInfo,
2175 vk_free2(&device->vk.alloc, pAllocator, pipeline);
2179 result = anv_graphics_pipeline_init(pipeline, device, cache,
2182 vk_free2(&device->vk.alloc, pAllocator, pipeline);
2186 anv_genX(&device->info, graphics_pipeline_emit)(pipeline, &state);
2201 ANV_FROM_HANDLE(anv_device, device, _device);
2208 VkResult res = anv_graphics_pipeline_create(device,
2244 pipeline->base.device->physical->compiler;
2271 .log_data = pipeline->base.device,
2283 anv_device_upload_kernel(pipeline->base.device,
2393 populate_bs_prog_key(pipeline->base.device,
2394 pipeline->base.device->robust_buffer_access,
2455 stages[i].bin = anv_device_search_for_kernel(pipeline->base.device, cache,
2486 const struct intel_device_info *devinfo = &pipeline->base.device->info;
2686 anv_device_init_rt_shaders(struct anv_device *device)
2688 if (!device->vk.enabled_extensions.KHR_ray_tracing_pipeline)
2699 device->rt_trampoline =
2700 anv_device_search_for_kernel(device, device->internal_cache,
2703 if (device->rt_trampoline == NULL) {
2707 brw_nir_create_raygen_trampoline(device->physical->compiler, tmp_ctx);
2726 .log_data = device,
2729 brw_compile_cs(device->physical->compiler, tmp_ctx, &params);
2731 device->rt_trampoline =
2732 anv_device_upload_kernel(device, device->internal_cache,
2743 if (device->rt_trampoline == NULL)
2744 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
2750 anv_shader_bin_unref(device, device->rt_trampoline);
2758 device->rt_trivial_return =
2759 anv_device_search_for_kernel(device, device->internal_cache,
2762 if (device->rt_trivial_return == NULL) {
2765 brw_nir_create_trivial_return_shader(device->physical->compiler, tmp_ctx);
2767 NIR_PASS_V(trivial_return_nir, brw_nir_lower_rt_intrinsics, &device->info);
2779 .log_data = device,
2782 brw_compile_bs(device->physical->compiler, tmp_ctx, &params);
2784 device->rt_trivial_return =
2785 anv_device_upload_kernel(device, device->internal_cache,
2794 if (device->rt_trivial_return == NULL)
2795 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
2801 anv_shader_bin_unref(device, device->rt_trivial_return);
2807 anv_device_finish_rt_shaders(struct anv_device *device)
2809 if (!device->vk.enabled_extensions.KHR_ray_tracing_pipeline)
2815 struct anv_device *device,
2835 anv_shader_bin_unref(device, *shader);
2861 ANV_FROM_HANDLE(anv_device, device, _device);
2869 if (!vk_multialloc_zalloc2(&ma, &device->vk.alloc, pAllocator,
2871 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
2873 result = anv_pipeline_init(&pipeline->base, device,
2877 vk_free2(&device->vk.alloc, pAllocator, pipeline);
2930 result = anv_ray_tracing_pipeline_init(pipeline, device, cache,
2933 anv_pipeline_finish(&pipeline->base, device, pAllocator);
2934 vk_free2(&device->vk.alloc, pAllocator, pipeline);
2938 anv_genX(&device->info, ray_tracing_pipeline_emit)(pipeline);
2993 VkDevice device,
3041 VkDevice device,
3182 VkDevice device,
3229 ANV_FROM_HANDLE(anv_device, device, _device);
3233 return vk_error(device, VK_ERROR_FEATURE_NOT_PRESENT);
3256 ANV_FROM_HANDLE(anv_device, device, _device);
3258 return vk_error(device, VK_ERROR_FEATURE_NOT_PRESENT);
3263 VkDevice device,