• Home
  • Raw
  • Download

Lines Matching refs:device

116 VkResult radv_device_init_meta_buffer_state(struct radv_device *device)  in radv_device_init_meta_buffer_state()  argument
122 zero(device->meta_state.buffer); in radv_device_init_meta_buffer_state()
124 fill_cs.nir = build_buffer_fill_shader(device); in radv_device_init_meta_buffer_state()
125 copy_cs.nir = build_buffer_copy_shader(device); in radv_device_init_meta_buffer_state()
141 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
143 &device->meta_state.alloc, in radv_device_init_meta_buffer_state()
144 &device->meta_state.buffer.fill_ds_layout); in radv_device_init_meta_buffer_state()
169 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
171 &device->meta_state.alloc, in radv_device_init_meta_buffer_state()
172 &device->meta_state.buffer.copy_ds_layout); in radv_device_init_meta_buffer_state()
180 .pSetLayouts = &device->meta_state.buffer.fill_ds_layout, in radv_device_init_meta_buffer_state()
185 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
187 &device->meta_state.alloc, in radv_device_init_meta_buffer_state()
188 &device->meta_state.buffer.fill_p_layout); in radv_device_init_meta_buffer_state()
195 .pSetLayouts = &device->meta_state.buffer.copy_ds_layout, in radv_device_init_meta_buffer_state()
199 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
201 &device->meta_state.alloc, in radv_device_init_meta_buffer_state()
202 &device->meta_state.buffer.copy_p_layout); in radv_device_init_meta_buffer_state()
218 .layout = device->meta_state.buffer.fill_p_layout, in radv_device_init_meta_buffer_state()
221 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
222 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_buffer_state()
224 &device->meta_state.buffer.fill_pipeline); in radv_device_init_meta_buffer_state()
240 .layout = device->meta_state.buffer.copy_p_layout, in radv_device_init_meta_buffer_state()
243 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_buffer_state()
244 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_buffer_state()
246 &device->meta_state.buffer.copy_pipeline); in radv_device_init_meta_buffer_state()
254 radv_device_finish_meta_buffer_state(device); in radv_device_init_meta_buffer_state()
260 void radv_device_finish_meta_buffer_state(struct radv_device *device) in radv_device_finish_meta_buffer_state() argument
262 if (device->meta_state.buffer.copy_pipeline) in radv_device_finish_meta_buffer_state()
263 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
264 device->meta_state.buffer.copy_pipeline, in radv_device_finish_meta_buffer_state()
265 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
267 if (device->meta_state.buffer.fill_pipeline) in radv_device_finish_meta_buffer_state()
268 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
269 device->meta_state.buffer.fill_pipeline, in radv_device_finish_meta_buffer_state()
270 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
272 if (device->meta_state.buffer.copy_p_layout) in radv_device_finish_meta_buffer_state()
273 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
274 device->meta_state.buffer.copy_p_layout, in radv_device_finish_meta_buffer_state()
275 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
277 if (device->meta_state.buffer.fill_p_layout) in radv_device_finish_meta_buffer_state()
278 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
279 device->meta_state.buffer.fill_p_layout, in radv_device_finish_meta_buffer_state()
280 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
282 if (device->meta_state.buffer.copy_ds_layout) in radv_device_finish_meta_buffer_state()
283 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
284 device->meta_state.buffer.copy_ds_layout, in radv_device_finish_meta_buffer_state()
285 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
287 if (device->meta_state.buffer.fill_ds_layout) in radv_device_finish_meta_buffer_state()
288 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_buffer_state()
289 device->meta_state.buffer.fill_ds_layout, in radv_device_finish_meta_buffer_state()
290 &device->meta_state.alloc); in radv_device_finish_meta_buffer_state()
297 struct radv_device *device = cmd_buffer->device; in fill_buffer_shader() local
304 radv_temp_descriptor_set_create(device, cmd_buffer, in fill_buffer_shader()
305 device->meta_state.buffer.fill_ds_layout, in fill_buffer_shader()
314 radv_UpdateDescriptorSets(radv_device_to_handle(device), in fill_buffer_shader()
334 device->meta_state.buffer.fill_pipeline); in fill_buffer_shader()
338 device->meta_state.buffer.fill_p_layout, 0, 1, in fill_buffer_shader()
342 device->meta_state.buffer.fill_p_layout, in fill_buffer_shader()
348 radv_temp_descriptor_set_destroy(device, ds); in fill_buffer_shader()
359 struct radv_device *device = cmd_buffer->device; in copy_buffer_shader() local
366 radv_temp_descriptor_set_create(device, cmd_buffer, in copy_buffer_shader()
367 device->meta_state.buffer.copy_ds_layout, in copy_buffer_shader()
382 radv_UpdateDescriptorSets(radv_device_to_handle(device), in copy_buffer_shader()
415 device->meta_state.buffer.copy_pipeline); in copy_buffer_shader()
419 device->meta_state.buffer.copy_p_layout, 0, 1, in copy_buffer_shader()
425 radv_temp_descriptor_set_destroy(device, ds); in copy_buffer_shader()
441 uint64_t va = cmd_buffer->device->ws->buffer_get_va(bo); in radv_fill_buffer()
443 cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, bo, 8); in radv_fill_buffer()
459 uint64_t src_va = cmd_buffer->device->ws->buffer_get_va(src_bo); in radv_copy_buffer()
460 uint64_t dst_va = cmd_buffer->device->ws->buffer_get_va(dst_bo); in radv_copy_buffer()
464 cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, src_bo, 8); in radv_copy_buffer()
465 cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, dst_bo, 8); in radv_copy_buffer()
520 uint64_t va = cmd_buffer->device->ws->buffer_get_va(dst_buffer->bo); in radv_CmdUpdateBuffer()
529 cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, dst_buffer->bo, 8); in radv_CmdUpdateBuffer()
531 radeon_check_space(cmd_buffer->device->ws, cmd_buffer->cs, words + 4); in radv_CmdUpdateBuffer()