Lines Matching refs:device
162 struct radv_device *device = _device; in meta_alloc() local
163 return device->alloc.pfnAllocation(device->alloc.pUserData, size, alignment, in meta_alloc()
171 struct radv_device *device = _device; in meta_realloc() local
172 return device->alloc.pfnReallocation(device->alloc.pUserData, original, in meta_realloc()
180 struct radv_device *device = _device; in meta_free() local
181 return device->alloc.pfnFree(device->alloc.pUserData, data); in meta_free()
216 radv_load_meta_pipeline(struct radv_device *device) in radv_load_meta_pipeline() argument
236 radv_pipeline_cache_load(&device->meta_state.cache, data, st.st_size); in radv_load_meta_pipeline()
243 radv_store_meta_pipeline(struct radv_device *device) in radv_store_meta_pipeline() argument
249 if (!device->meta_state.cache.modified) in radv_store_meta_pipeline()
252 if (radv_GetPipelineCacheData(radv_device_to_handle(device), in radv_store_meta_pipeline()
253 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_store_meta_pipeline()
269 if (radv_GetPipelineCacheData(radv_device_to_handle(device), in radv_store_meta_pipeline()
270 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_store_meta_pipeline()
284 radv_device_init_meta(struct radv_device *device) in radv_device_init_meta() argument
288 device->meta_state.alloc = (VkAllocationCallbacks) { in radv_device_init_meta()
289 .pUserData = device, in radv_device_init_meta()
295 device->meta_state.cache.alloc = device->meta_state.alloc; in radv_device_init_meta()
296 radv_pipeline_cache_init(&device->meta_state.cache, device); in radv_device_init_meta()
297 radv_load_meta_pipeline(device); in radv_device_init_meta()
299 result = radv_device_init_meta_clear_state(device); in radv_device_init_meta()
303 result = radv_device_init_meta_resolve_state(device); in radv_device_init_meta()
307 result = radv_device_init_meta_blit_state(device); in radv_device_init_meta()
311 result = radv_device_init_meta_blit2d_state(device); in radv_device_init_meta()
315 result = radv_device_init_meta_bufimage_state(device); in radv_device_init_meta()
319 result = radv_device_init_meta_depth_decomp_state(device); in radv_device_init_meta()
323 result = radv_device_init_meta_buffer_state(device); in radv_device_init_meta()
327 result = radv_device_init_meta_fast_clear_flush_state(device); in radv_device_init_meta()
331 result = radv_device_init_meta_resolve_compute_state(device); in radv_device_init_meta()
337 radv_device_finish_meta_fast_clear_flush_state(device); in radv_device_init_meta()
339 radv_device_finish_meta_buffer_state(device); in radv_device_init_meta()
341 radv_device_finish_meta_depth_decomp_state(device); in radv_device_init_meta()
343 radv_device_finish_meta_bufimage_state(device); in radv_device_init_meta()
345 radv_device_finish_meta_blit2d_state(device); in radv_device_init_meta()
347 radv_device_finish_meta_blit_state(device); in radv_device_init_meta()
349 radv_device_finish_meta_resolve_state(device); in radv_device_init_meta()
351 radv_device_finish_meta_clear_state(device); in radv_device_init_meta()
353 radv_pipeline_cache_finish(&device->meta_state.cache); in radv_device_init_meta()
358 radv_device_finish_meta(struct radv_device *device) in radv_device_finish_meta() argument
360 radv_device_finish_meta_clear_state(device); in radv_device_finish_meta()
361 radv_device_finish_meta_resolve_state(device); in radv_device_finish_meta()
362 radv_device_finish_meta_blit_state(device); in radv_device_finish_meta()
363 radv_device_finish_meta_blit2d_state(device); in radv_device_finish_meta()
364 radv_device_finish_meta_bufimage_state(device); in radv_device_finish_meta()
365 radv_device_finish_meta_depth_decomp_state(device); in radv_device_finish_meta()
366 radv_device_finish_meta_buffer_state(device); in radv_device_finish_meta()
367 radv_device_finish_meta_fast_clear_flush_state(device); in radv_device_finish_meta()
368 radv_device_finish_meta_resolve_compute_state(device); in radv_device_finish_meta()
370 radv_store_meta_pipeline(device); in radv_device_finish_meta()
371 radv_pipeline_cache_finish(&device->meta_state.cache); in radv_device_finish_meta()