/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_buffer.c | 41 struct pipe_shader_buffer *bview = &sp_buf->sp_bview[unit]; in sp_tgsi_ssbo_lookup() local 43 if (!bview->buffer || in sp_tgsi_ssbo_lookup() 44 bview->buffer_offset > bview->buffer->width0 || in sp_tgsi_ssbo_lookup() 45 bview->buffer_size > bview->buffer->width0 - bview->buffer_offset) { in sp_tgsi_ssbo_lookup() 49 struct softpipe_resource *spr = softpipe_resource(bview->buffer); in sp_tgsi_ssbo_lookup() 50 *size = bview->buffer_size; in sp_tgsi_ssbo_lookup() 51 return (char *)spr->data + bview->buffer_offset; in sp_tgsi_ssbo_lookup()
|
/third_party/mesa3d/src/imagination/vulkan/ |
D | pvr_image.c | 376 struct pvr_buffer_view *bview; in pvr_CreateBufferView() local 379 bview = vk_object_alloc(&device->vk, in pvr_CreateBufferView() 381 sizeof(*bview), in pvr_CreateBufferView() 383 if (!bview) in pvr_CreateBufferView() 386 bview->format = pCreateInfo->format; in pvr_CreateBufferView() 387 bview->range = in pvr_CreateBufferView() 393 bview->range -= bview->range % vk_format_get_blocksize(bview->format); in pvr_CreateBufferView() 396 assert(bview->range >= vk_format_get_blocksize(bview->format)); in pvr_CreateBufferView() 402 info.extent.height = bview->range / vk_format_get_blocksize(bview->format); in pvr_CreateBufferView() 412 info.format = bview->format; in pvr_CreateBufferView() [all …]
|
D | pvr_descriptor_set.c | 1644 const struct pvr_buffer_view *bview, in pvr_write_buffer_descriptor() argument 1651 qword_ptr[0] = bview->texture_state[0]; in pvr_write_buffer_descriptor() 1652 qword_ptr[1] = bview->texture_state[1]; in pvr_write_buffer_descriptor() 1671 (uint32_t)(bview->range / vk_format_get_blocksize(bview->format)); in pvr_write_buffer_descriptor() 1691 PVR_FROM_HANDLE(pvr_buffer_view, bview, write_set->pTexelBufferView[i]); in pvr_descriptor_update_buffer_view() 1696 set->descriptors[desc_idx].bview = bview; in pvr_descriptor_update_buffer_view() 1724 bview, in pvr_descriptor_update_buffer_view()
|
D | pvr_private.h | 504 struct pvr_buffer_view *bview; member
|
/third_party/mesa3d/src/microsoft/vulkan/ |
D | dzn_image.c | 1236 dzn_buffer_view_destroy(struct dzn_buffer_view *bview, in dzn_buffer_view_destroy() argument 1239 if (!bview) in dzn_buffer_view_destroy() 1242 struct dzn_device *device = container_of(bview->base.device, struct dzn_device, vk); in dzn_buffer_view_destroy() 1244 vk_object_base_finish(&bview->base); in dzn_buffer_view_destroy() 1245 vk_free2(&device->vk.alloc, pAllocator, bview); in dzn_buffer_view_destroy() 1256 struct dzn_buffer_view *bview = in dzn_buffer_view_create() local 1257 vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*bview), 8, in dzn_buffer_view_create() 1259 if (!bview) in dzn_buffer_view_create() 1262 vk_object_base_init(&device->vk, &bview->base, VK_OBJECT_TYPE_BUFFER_VIEW); in dzn_buffer_view_create() 1270 bview->buffer = buf; in dzn_buffer_view_create() [all …]
|
D | dzn_descriptor_set.c | 909 const struct dzn_buffer_view *bview) in dzn_descriptor_heap_write_buffer_view_desc() argument 915 …ID3D12Device1_CreateUnorderedAccessView(heap->dev, bview->buffer->res, NULL, &bview->uav_desc, vie… in dzn_descriptor_heap_write_buffer_view_desc() 917 …ID3D12Device1_CreateShaderResourceView(heap->dev, bview->buffer->res, &bview->srv_desc, view_handl… in dzn_descriptor_heap_write_buffer_view_desc() 1205 const struct dzn_buffer_view *bview) in dzn_descriptor_set_write_buffer_view_desc() argument 1216 false, bview); in dzn_descriptor_set_write_buffer_view_desc() 1222 true, bview); in dzn_descriptor_set_write_buffer_view_desc() 1230 const struct dzn_buffer_view *bview) in dzn_descriptor_set_ptr_write_buffer_view_desc() argument 1238 dzn_descriptor_set_write_buffer_view_desc(set, heap_offset, alt_heap_offset, bview); in dzn_descriptor_set_ptr_write_buffer_view_desc() 1782 VK_FROM_HANDLE(dzn_buffer_view, bview, pDescriptorWrite->pTexelBufferView[d]); in dzn_descriptor_set_write() 1784 if (bview) in dzn_descriptor_set_write() [all …]
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_descriptor_set.c | 1641 struct anv_buffer_view *bview = in anv_descriptor_set_write_buffer() local 1644 bview->range = bind_range; in anv_descriptor_set_write_buffer() 1645 bview->address = bind_addr; in anv_descriptor_set_write_buffer() 1652 bview->surface_state = anv_state_stream_alloc(alloc_stream, 64, 64); in anv_descriptor_set_write_buffer() 1655 assert(bview->surface_state.alloc_size); in anv_descriptor_set_write_buffer() 1664 anv_fill_buffer_surface_state(device, bview->surface_state, in anv_descriptor_set_write_buffer() 1667 desc->set_buffer_view = bview; in anv_descriptor_set_write_buffer() 1752 ANV_FROM_HANDLE(anv_buffer_view, bview, in anv_UpdateDescriptorSets() 1757 bview, in anv_UpdateDescriptorSets() 1932 ANV_FROM_HANDLE(anv_buffer_view, bview, *_bview); in anv_descriptor_set_write_template() [all …]
|
D | anv_cmd_buffer.c | 967 ANV_FROM_HANDLE(anv_buffer_view, bview, in anv_CmdPushDescriptorSetKHR() 972 bview, in anv_CmdPushDescriptorSetKHR()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_blit2d.c | 80 struct radv_buffer_view *bview, VkFormat depth_format) in create_bview() argument 88 radv_buffer_view_init(bview, cmd_buffer->device, in create_bview() 101 struct radv_buffer_view bview; member 113 create_bview(cmd_buffer, src_buf, &tmp->bview, depth_format); in blit2d_bind_src() 125 .pTexelBufferView = (VkBufferView[]){radv_buffer_view_to_handle(&tmp->bview)}}}); in blit2d_bind_src() 366 radv_buffer_view_finish(&src_temps.bview); in radv_meta_blit2d_normal_dst()
|
D | radv_meta_bufimage.c | 1232 VkFormat format, struct radv_buffer_view *bview) in create_bview() argument 1234 radv_buffer_view_init(bview, cmd_buffer->device, in create_bview() 1277 unsigned offset, VkFormat src_format, struct radv_buffer_view *bview) in create_bview_for_r32g32b32() argument 1295 radv_buffer_view_init(bview, cmd_buffer->device, in create_bview_for_r32g32b32()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dv_descriptor_set.c | 1055 struct v3dv_buffer_view *bview, in write_buffer_view_descriptor() argument 1058 assert(bview); in write_buffer_view_descriptor() 1060 descriptor->buffer_view = bview; in write_buffer_view_descriptor() 1065 bview->texture_shader_state, in write_buffer_view_descriptor() 1066 sizeof(bview->texture_shader_state)); in write_buffer_view_descriptor() 1417 V3DV_FROM_HANDLE(v3dv_buffer_view, bview, *_bview); in v3dv_UpdateDescriptorSetWithTemplate() 1420 entry->type, set, binding_layout, bview, in v3dv_UpdateDescriptorSetWithTemplate()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_descriptor_set.c | 483 LVP_FROM_HANDLE(lvp_buffer_view, bview, in lvp_UpdateDescriptorSets() 488 .info.buffer_view = bview, in lvp_UpdateDescriptorSets() 725 LVP_FROM_HANDLE(lvp_buffer_view, bview, in lvp_UpdateDescriptorSetWithTemplate() 729 .info.buffer_view = bview, in lvp_UpdateDescriptorSetWithTemplate()
|