Lines Matching refs:device

61    struct pvr_device *device,
83 staging_buffer = vk_alloc2(&device->vk.alloc,
89 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
104 result = pvr_gpu_upload_pds(device,
114 vk_free2(&device->vk.alloc, allocator, staging_buffer);
118 vk_free2(&device->vk.alloc, allocator, staging_buffer);
126 struct pvr_device *device,
158 staging_buffer = vk_alloc2(&device->vk.alloc,
164 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
173 result = pvr_gpu_upload_pds(device,
183 vk_free2(&device->vk.alloc, allocator, staging_buffer);
187 vk_free2(&device->vk.alloc, allocator, staging_buffer);
339 struct pvr_device *const device,
346 &device->pdevice->dev_info,
347 device->features.robustBufferAccess);
358 entries_buffer = vk_alloc2(&device->vk.alloc,
364 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
372 device->features.robustBufferAccess,
373 &device->pdevice->dev_info);
378 staging_buffer = vk_alloc2(&device->vk.alloc,
384 vk_free2(&device->vk.alloc, allocator, entries_buffer);
385 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
392 device->features.robustBufferAccess,
393 &device->pdevice->dev_info);
398 entries_buffer = vk_realloc((!allocator) ? &device->vk.alloc : allocator,
404 vk_free2(&device->vk.alloc, allocator, staging_buffer);
405 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
412 result = pvr_gpu_upload_pds(device,
422 vk_free2(&device->vk.alloc, allocator, entries_buffer);
423 vk_free2(&device->vk.alloc, allocator, staging_buffer);
425 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
428 vk_free2(&device->vk.alloc, allocator, staging_buffer);
434 struct pvr_device *const device,
438 pvr_bo_free(device, program->program.pvr_bo);
439 vk_free2(&device->vk.alloc, allocator, program->info.entries);
457 struct pvr_device *device,
507 pvr_pds_vertex_attrib_program_create_and_upload(device,
513 pvr_pds_vertex_attrib_program_destroy(device,
573 struct pvr_device *device,
624 result = pvr_gpu_upload(device,
625 device->heaps.general_heap,
643 struct pvr_device *const device,
667 device,
668 device->features.robustBufferAccess,
710 entries_buffer = vk_alloc2(&device->vk.alloc,
716 pvr_bo_free(device, descriptor_state->static_consts);
718 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
731 vk_free2(&device->vk.alloc, allocator, entries_buffer);
738 staging_buffer = vk_alloc2(&device->vk.alloc,
744 pvr_bo_free(device, descriptor_state->static_consts);
745 vk_free2(&device->vk.alloc, allocator, entries_buffer);
747 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
757 entries_buffer = vk_realloc((!allocator) ? &device->vk.alloc : allocator,
763 pvr_bo_free(device, descriptor_state->static_consts);
764 vk_free2(&device->vk.alloc, allocator, staging_buffer);
766 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
773 result = pvr_gpu_upload_pds(device,
783 pvr_bo_free(device, descriptor_state->static_consts);
784 vk_free2(&device->vk.alloc, allocator, entries_buffer);
785 vk_free2(&device->vk.alloc, allocator, staging_buffer);
787 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
790 vk_free2(&device->vk.alloc, allocator, staging_buffer);
796 struct pvr_device *const device,
800 pvr_bo_free(device, descriptor_state->pds_code.pvr_bo);
801 vk_free2(&device->vk.alloc, allocator, descriptor_state->pds_info.entries);
802 pvr_bo_free(device, descriptor_state->static_consts);
858 struct pvr_device *const device,
868 struct pvr_device_info *dev_info = &device->pdevice->dev_info;
889 staging_buffer = vk_alloc2(&device->vk.alloc,
895 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
911 result = pvr_gpu_upload_pds(device,
921 vk_free2(&device->vk.alloc, allocator, staging_buffer);
931 vk_free2(&device->vk.alloc, allocator, staging_buffer);
937 struct pvr_device *const device,
943 pvr_bo_free(device, pds_program->pvr_bo);
950 struct pvr_device *const device,
959 struct pvr_device_info *dev_info = &device->pdevice->dev_info;
979 buffer = vk_alloc2(&device->vk.alloc,
985 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
993 result = pvr_gpu_upload_pds(device,
1003 vk_free2(&device->vk.alloc, allocator, buffer);
1029 struct pvr_device *device,
1033 pvr_bo_free(device, state->code_upload.pvr_bo);
1034 vk_free2(&device->vk.alloc, allocator, state->data_section);
1041 static void pvr_pipeline_init(struct pvr_device *device,
1047 vk_object_base_init(&device->vk, &pipeline->base, VK_OBJECT_TYPE_PIPELINE);
1063 struct pvr_device *const device,
1078 if (pvr_hard_code_shader_required(&device->pdevice->dev_info)) {
1081 result = pvr_hard_code_compute_pipeline(device,
1120 device,
1132 device,
1154 device,
1170 device,
1176 pvr_bo_free(device, compute_pipeline->state.descriptor.pds_code.pvr_bo);
1179 pvr_bo_free(device, compute_pipeline->state.shader.bo);
1185 pvr_compute_pipeline_init(struct pvr_device *device,
1193 pvr_pipeline_init(device,
1200 result = pvr_compute_pipeline_compile(device,
1214 pvr_compute_pipeline_create(struct pvr_device *device,
1223 compute_pipeline = vk_zalloc2(&device->vk.alloc,
1229 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1232 result = pvr_compute_pipeline_init(device,
1238 vk_free2(&device->vk.alloc, allocator, compute_pipeline);
1248 struct pvr_device *const device,
1254 device,
1260 device,
1264 pvr_pds_descriptor_program_destroy(device,
1267 pvr_bo_free(device, compute_pipeline->state.shader.bo);
1271 vk_free2(&device->vk.alloc, allocator, compute_pipeline);
1283 PVR_FROM_HANDLE(pvr_device, device, _device);
1288 pvr_compute_pipeline_create(device,
1331 pvr_graphics_pipeline_destroy(struct pvr_device *const device,
1339 device,
1344 device,
1352 pvr_pds_vertex_attrib_program_destroy(device, allocator, attrib_program);
1355 pvr_bo_free(device,
1357 pvr_bo_free(device,
1360 pvr_bo_free(device, gfx_pipeline->fragment_shader_state.bo);
1361 pvr_bo_free(device, gfx_pipeline->vertex_shader_state.bo);
1365 vk_free2(&device->vk.alloc, allocator, gfx_pipeline);
1442 pvr_graphics_pipeline_compile(struct pvr_device *const device,
1460 rogue_get_slc_cache_line_size(&device->pdevice->dev_info);
1461 struct rogue_compiler *compiler = device->pdevice->compiler;
1468 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1476 if (pvr_hard_code_shader_required(&device->pdevice->dev_info)) {
1477 if (pvr_hard_code_graphics_get_flags(&device->pdevice->dev_info) &
1493 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1506 if (pvr_hard_code_shader_required(&device->pdevice->dev_info) &&
1507 pvr_hard_code_graphics_get_flags(&device->pdevice->dev_info) &
1510 &device->pdevice->dev_info;
1547 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1553 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1557 if (pvr_hard_code_shader_required(&device->pdevice->dev_info) &&
1558 pvr_hard_code_graphics_get_flags(&device->pdevice->dev_info) &
1560 pvr_hard_code_graphics_vertex_state(&device->pdevice->dev_info,
1569 result = pvr_gpu_upload_usc(device,
1577 if (pvr_hard_code_shader_required(&device->pdevice->dev_info) &&
1578 pvr_hard_code_graphics_get_flags(&device->pdevice->dev_info) &
1581 &device->pdevice->dev_info,
1589 result = pvr_gpu_upload_usc(device,
1607 device,
1617 device,
1628 device,
1638 device,
1661 device,
1680 device,
1690 pvr_pds_vertex_attrib_program_destroy(device, allocator, attrib_program);
1693 pvr_bo_free(device,
1696 pvr_bo_free(device,
1699 pvr_bo_free(device, gfx_pipeline->fragment_shader_state.bo);
1701 pvr_bo_free(device, gfx_pipeline->vertex_shader_state.bo);
1837 pvr_graphics_pipeline_init(struct pvr_device *device,
1860 pvr_pipeline_init(device, PVR_PIPELINE_TYPE_GRAPHICS, &gfx_pipeline->base);
1932 result = pvr_graphics_pipeline_compile(device,
1947 pvr_graphics_pipeline_create(struct pvr_device *device,
1956 gfx_pipeline = vk_zalloc2(&device->vk.alloc,
1962 return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
1965 result = pvr_graphics_pipeline_init(device,
1971 vk_free2(&device->vk.alloc, allocator, gfx_pipeline);
1989 PVR_FROM_HANDLE(pvr_device, device, _device);
1994 pvr_graphics_pipeline_create(device,
2017 PVR_FROM_HANDLE(pvr_device, device, _device);
2027 pvr_graphics_pipeline_destroy(device, pAllocator, gfx_pipeline);
2035 pvr_compute_pipeline_destroy(device, pAllocator, compute_pipeline);