• Home
  • Raw
  • Download

Lines Matching refs:device

121 radv_device_init_meta_itob_state(struct radv_device *device)  in radv_device_init_meta_itob_state()  argument
126 zero(device->meta_state.itob); in radv_device_init_meta_itob_state()
128 cs.nir = build_nir_itob_compute_shader(device); in radv_device_init_meta_itob_state()
155 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_itob_state()
157 &device->meta_state.alloc, in radv_device_init_meta_itob_state()
158 &device->meta_state.itob.img_ds_layout); in radv_device_init_meta_itob_state()
166 .pSetLayouts = &device->meta_state.itob.img_ds_layout, in radv_device_init_meta_itob_state()
171 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_itob_state()
173 &device->meta_state.alloc, in radv_device_init_meta_itob_state()
174 &device->meta_state.itob.img_p_layout); in radv_device_init_meta_itob_state()
192 .layout = device->meta_state.itob.img_p_layout, in radv_device_init_meta_itob_state()
195 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_itob_state()
196 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_itob_state()
198 &device->meta_state.itob.pipeline); in radv_device_init_meta_itob_state()
210 radv_device_finish_meta_itob_state(struct radv_device *device) in radv_device_finish_meta_itob_state() argument
212 if (device->meta_state.itob.img_p_layout) { in radv_device_finish_meta_itob_state()
213 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_itob_state()
214 device->meta_state.itob.img_p_layout, in radv_device_finish_meta_itob_state()
215 &device->meta_state.alloc); in radv_device_finish_meta_itob_state()
217 if (device->meta_state.itob.img_ds_layout) { in radv_device_finish_meta_itob_state()
218 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_itob_state()
219 device->meta_state.itob.img_ds_layout, in radv_device_finish_meta_itob_state()
220 &device->meta_state.alloc); in radv_device_finish_meta_itob_state()
222 if (device->meta_state.itob.pipeline) { in radv_device_finish_meta_itob_state()
223 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_itob_state()
224 device->meta_state.itob.pipeline, in radv_device_finish_meta_itob_state()
225 &device->meta_state.alloc); in radv_device_finish_meta_itob_state()
316 radv_device_init_meta_btoi_state(struct radv_device *device) in radv_device_init_meta_btoi_state() argument
321 zero(device->meta_state.btoi); in radv_device_init_meta_btoi_state()
323 cs.nir = build_nir_btoi_compute_shader(device); in radv_device_init_meta_btoi_state()
350 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_btoi_state()
352 &device->meta_state.alloc, in radv_device_init_meta_btoi_state()
353 &device->meta_state.btoi.img_ds_layout); in radv_device_init_meta_btoi_state()
361 .pSetLayouts = &device->meta_state.btoi.img_ds_layout, in radv_device_init_meta_btoi_state()
366 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_btoi_state()
368 &device->meta_state.alloc, in radv_device_init_meta_btoi_state()
369 &device->meta_state.btoi.img_p_layout); in radv_device_init_meta_btoi_state()
387 .layout = device->meta_state.btoi.img_p_layout, in radv_device_init_meta_btoi_state()
390 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_btoi_state()
391 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_btoi_state()
393 &device->meta_state.btoi.pipeline); in radv_device_init_meta_btoi_state()
405 radv_device_finish_meta_btoi_state(struct radv_device *device) in radv_device_finish_meta_btoi_state() argument
407 if (device->meta_state.btoi.img_p_layout) { in radv_device_finish_meta_btoi_state()
408 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_btoi_state()
409 device->meta_state.btoi.img_p_layout, in radv_device_finish_meta_btoi_state()
410 &device->meta_state.alloc); in radv_device_finish_meta_btoi_state()
412 if (device->meta_state.btoi.img_ds_layout) { in radv_device_finish_meta_btoi_state()
413 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_btoi_state()
414 device->meta_state.btoi.img_ds_layout, in radv_device_finish_meta_btoi_state()
415 &device->meta_state.alloc); in radv_device_finish_meta_btoi_state()
417 if (device->meta_state.btoi.pipeline) { in radv_device_finish_meta_btoi_state()
418 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_btoi_state()
419 device->meta_state.btoi.pipeline, in radv_device_finish_meta_btoi_state()
420 &device->meta_state.alloc); in radv_device_finish_meta_btoi_state()
505 radv_device_init_meta_itoi_state(struct radv_device *device) in radv_device_init_meta_itoi_state() argument
510 zero(device->meta_state.itoi); in radv_device_init_meta_itoi_state()
512 cs.nir = build_nir_itoi_compute_shader(device); in radv_device_init_meta_itoi_state()
539 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_itoi_state()
541 &device->meta_state.alloc, in radv_device_init_meta_itoi_state()
542 &device->meta_state.itoi.img_ds_layout); in radv_device_init_meta_itoi_state()
550 .pSetLayouts = &device->meta_state.itoi.img_ds_layout, in radv_device_init_meta_itoi_state()
555 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_itoi_state()
557 &device->meta_state.alloc, in radv_device_init_meta_itoi_state()
558 &device->meta_state.itoi.img_p_layout); in radv_device_init_meta_itoi_state()
576 .layout = device->meta_state.itoi.img_p_layout, in radv_device_init_meta_itoi_state()
579 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_itoi_state()
580 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_itoi_state()
582 &device->meta_state.itoi.pipeline); in radv_device_init_meta_itoi_state()
594 radv_device_finish_meta_itoi_state(struct radv_device *device) in radv_device_finish_meta_itoi_state() argument
596 if (device->meta_state.itoi.img_p_layout) { in radv_device_finish_meta_itoi_state()
597 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_itoi_state()
598 device->meta_state.itoi.img_p_layout, in radv_device_finish_meta_itoi_state()
599 &device->meta_state.alloc); in radv_device_finish_meta_itoi_state()
601 if (device->meta_state.itoi.img_ds_layout) { in radv_device_finish_meta_itoi_state()
602 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_itoi_state()
603 device->meta_state.itoi.img_ds_layout, in radv_device_finish_meta_itoi_state()
604 &device->meta_state.alloc); in radv_device_finish_meta_itoi_state()
606 if (device->meta_state.itoi.pipeline) { in radv_device_finish_meta_itoi_state()
607 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_itoi_state()
608 device->meta_state.itoi.pipeline, in radv_device_finish_meta_itoi_state()
609 &device->meta_state.alloc); in radv_device_finish_meta_itoi_state()
658 radv_device_init_meta_cleari_state(struct radv_device *device) in radv_device_init_meta_cleari_state() argument
663 zero(device->meta_state.cleari); in radv_device_init_meta_cleari_state()
665 cs.nir = build_nir_cleari_compute_shader(device); in radv_device_init_meta_cleari_state()
685 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_cleari_state()
687 &device->meta_state.alloc, in radv_device_init_meta_cleari_state()
688 &device->meta_state.cleari.img_ds_layout); in radv_device_init_meta_cleari_state()
696 .pSetLayouts = &device->meta_state.cleari.img_ds_layout, in radv_device_init_meta_cleari_state()
701 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_cleari_state()
703 &device->meta_state.alloc, in radv_device_init_meta_cleari_state()
704 &device->meta_state.cleari.img_p_layout); in radv_device_init_meta_cleari_state()
722 .layout = device->meta_state.cleari.img_p_layout, in radv_device_init_meta_cleari_state()
725 result = radv_CreateComputePipelines(radv_device_to_handle(device), in radv_device_init_meta_cleari_state()
726 radv_pipeline_cache_to_handle(&device->meta_state.cache), in radv_device_init_meta_cleari_state()
728 &device->meta_state.cleari.pipeline); in radv_device_init_meta_cleari_state()
740 radv_device_finish_meta_cleari_state(struct radv_device *device) in radv_device_finish_meta_cleari_state() argument
742 if (device->meta_state.cleari.img_p_layout) { in radv_device_finish_meta_cleari_state()
743 radv_DestroyPipelineLayout(radv_device_to_handle(device), in radv_device_finish_meta_cleari_state()
744 device->meta_state.cleari.img_p_layout, in radv_device_finish_meta_cleari_state()
745 &device->meta_state.alloc); in radv_device_finish_meta_cleari_state()
747 if (device->meta_state.cleari.img_ds_layout) { in radv_device_finish_meta_cleari_state()
748 radv_DestroyDescriptorSetLayout(radv_device_to_handle(device), in radv_device_finish_meta_cleari_state()
749 device->meta_state.cleari.img_ds_layout, in radv_device_finish_meta_cleari_state()
750 &device->meta_state.alloc); in radv_device_finish_meta_cleari_state()
752 if (device->meta_state.cleari.pipeline) { in radv_device_finish_meta_cleari_state()
753 radv_DestroyPipeline(radv_device_to_handle(device), in radv_device_finish_meta_cleari_state()
754 device->meta_state.cleari.pipeline, in radv_device_finish_meta_cleari_state()
755 &device->meta_state.alloc); in radv_device_finish_meta_cleari_state()
760 radv_device_finish_meta_bufimage_state(struct radv_device *device) in radv_device_finish_meta_bufimage_state() argument
762 radv_device_finish_meta_itob_state(device); in radv_device_finish_meta_bufimage_state()
763 radv_device_finish_meta_btoi_state(device); in radv_device_finish_meta_bufimage_state()
764 radv_device_finish_meta_itoi_state(device); in radv_device_finish_meta_bufimage_state()
765 radv_device_finish_meta_cleari_state(device); in radv_device_finish_meta_bufimage_state()
769 radv_device_init_meta_bufimage_state(struct radv_device *device) in radv_device_init_meta_bufimage_state() argument
773 result = radv_device_init_meta_itob_state(device); in radv_device_init_meta_bufimage_state()
777 result = radv_device_init_meta_btoi_state(device); in radv_device_init_meta_bufimage_state()
781 result = radv_device_init_meta_itoi_state(device); in radv_device_init_meta_bufimage_state()
785 result = radv_device_init_meta_cleari_state(device); in radv_device_init_meta_bufimage_state()
791 radv_device_finish_meta_itoi_state(device); in radv_device_init_meta_bufimage_state()
793 radv_device_finish_meta_btoi_state(device); in radv_device_init_meta_bufimage_state()
795 radv_device_finish_meta_itob_state(device); in radv_device_init_meta_bufimage_state()
848 radv_image_view_init(iview, cmd_buffer->device, in create_iview()
871 radv_buffer_view_init(bview, cmd_buffer->device, in create_bview()
893 struct radv_device *device = cmd_buffer->device; in itob_bind_descriptors() local
894 VkDevice vk_device = radv_device_to_handle(cmd_buffer->device); in itob_bind_descriptors()
896 radv_temp_descriptor_set_create(device, cmd_buffer, in itob_bind_descriptors()
897 device->meta_state.itob.img_ds_layout, in itob_bind_descriptors()
931 device->meta_state.itob.img_p_layout, 0, 1, in itob_bind_descriptors()
939 cmd_buffer->device->meta_state.itob.pipeline; in itob_bind_pipeline()
954 struct radv_device *device = cmd_buffer->device; in radv_meta_image_to_buffer() local
970 device->meta_state.itob.img_p_layout, in radv_meta_image_to_buffer()
976 radv_temp_descriptor_set_destroy(cmd_buffer->device, temps.set); in radv_meta_image_to_buffer()
989 struct radv_device *device = cmd_buffer->device; in btoi_bind_descriptors() local
990 VkDevice vk_device = radv_device_to_handle(cmd_buffer->device); in btoi_bind_descriptors()
992 radv_temp_descriptor_set_create(device, cmd_buffer, in btoi_bind_descriptors()
993 device->meta_state.btoi.img_ds_layout, in btoi_bind_descriptors()
1027 device->meta_state.btoi.img_p_layout, 0, 1, in btoi_bind_descriptors()
1035 cmd_buffer->device->meta_state.btoi.pipeline; in btoi_bind_pipeline()
1050 struct radv_device *device = cmd_buffer->device; in radv_meta_buffer_to_image_cs() local
1066 device->meta_state.btoi.img_p_layout, in radv_meta_buffer_to_image_cs()
1072 radv_temp_descriptor_set_destroy(cmd_buffer->device, temps.set); in radv_meta_buffer_to_image_cs()
1085 struct radv_device *device = cmd_buffer->device; in itoi_bind_descriptors() local
1086 VkDevice vk_device = radv_device_to_handle(cmd_buffer->device); in itoi_bind_descriptors()
1088 radv_temp_descriptor_set_create(device, cmd_buffer, in itoi_bind_descriptors()
1089 device->meta_state.itoi.img_ds_layout, in itoi_bind_descriptors()
1129 device->meta_state.itoi.img_p_layout, 0, 1, in itoi_bind_descriptors()
1137 cmd_buffer->device->meta_state.itoi.pipeline; in itoi_bind_pipeline()
1152 struct radv_device *device = cmd_buffer->device; in radv_meta_image_to_image_cs() local
1170 device->meta_state.itoi.img_p_layout, in radv_meta_image_to_image_cs()
1176 radv_temp_descriptor_set_destroy(cmd_buffer->device, temps.set); in radv_meta_image_to_image_cs()
1188 struct radv_device *device = cmd_buffer->device; in cleari_bind_descriptors() local
1189 VkDevice vk_device = radv_device_to_handle(cmd_buffer->device); in cleari_bind_descriptors()
1191 radv_temp_descriptor_set_create(device, cmd_buffer, in cleari_bind_descriptors()
1192 device->meta_state.cleari.img_ds_layout, in cleari_bind_descriptors()
1217 device->meta_state.cleari.img_p_layout, 0, 1, in cleari_bind_descriptors()
1225 cmd_buffer->device->meta_state.cleari.pipeline; in cleari_bind_pipeline()
1238 struct radv_device *device = cmd_buffer->device; in radv_meta_clear_image_cs() local
1254 device->meta_state.cleari.img_p_layout, in radv_meta_clear_image_cs()
1259 radv_temp_descriptor_set_destroy(cmd_buffer->device, temps.set); in radv_meta_clear_image_cs()