/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_vX_cs.c | 318 struct mali_uniform_buffer_packed *ubos = descs; in emit_ubos() local 322 &ubos[PANVK_SYSVAL_UBO_INDEX]); in emit_ubos() 327 &ubos[PANVK_PUSH_CONST_UBO_INDEX]); in emit_ubos() 329 memset(&ubos[PANVK_PUSH_CONST_UBO_INDEX], 0, sizeof(*ubos)); in emit_ubos() 342 memset(&ubos[ubo_start], 0, all_ubos * sizeof(*ubos)); in emit_ubos() 344 memcpy(&ubos[ubo_start], set->ubos, in emit_ubos() 345 set_layout->num_ubos * sizeof(*ubos)); in emit_ubos() [all...] |
H A D | panvk_vX_descriptor_set.c | 252 set->ubos = vk_zalloc(&device->vk.alloc, in descriptor_set_create() 255 if (!set->ubos) in descriptor_set_create() 314 struct mali_uniform_buffer_packed *ubos = set->ubos; in descriptor_set_create() local 318 &ubos[layout->desc_ubo_index]); in descriptor_set_create() 338 vk_free(&device->vk.alloc, set->ubos); in descriptor_set_create() 576 return &((struct mali_uniform_buffer_packed *)set->ubos)[ubo_idx]; in panvk_ubo_desc()
|
H A D | panvk_cmd_buffer.c | 143 bdesc = &descriptors_state->dyn.ubos[dyn_ubo_offset++]; in panvk_CmdBindDescriptorSets() 168 descriptors_state->ubos = 0; in panvk_CmdBindDescriptorSets() 201 desc_state->ubos = 0; in panvk_CmdPushConstants() 209 desc_state->ubos = 0; in panvk_CmdPushConstants() 241 cmdbuf->bind_points[pipelineBindPoint].desc_state.ubos = 0; in panvk_CmdBindPipeline()
|
H A D | panvk_private.h | 329 void *ubos; 578 struct panvk_buffer_desc ubos[MAX_DYNAMIC_UNIFORM_BUFFERS]; 582 mali_ptr ubos; 616 mali_ptr ubos; 639 mali_ptr ubos;
|
H A D | panvk_vX_cmd_buffer.c | 287 if (!pipeline->num_ubos || desc_state->ubos) in panvk_cmd_prepare_ubos() 293 struct panfrost_ptr ubos = in panvk_cmd_prepare_ubos() local 298 panvk_per_arch(emit_ubos)(pipeline, desc_state, ubos.cpu); in panvk_cmd_prepare_ubos() 300 desc_state->ubos = ubos.gpu; in panvk_cmd_prepare_ubos() 757 draw->ubos = desc_state->ubos; in panvk_cmd_draw() 1364 dispatch.ubos = desc_state->ubos; in CmdDispatch()
|
H A D | panvk_descriptor_set.c | 296 vk_free(&device->vk.alloc, set->ubos); in panvk_descriptor_set_destroy()
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_context.h | 58 struct pipe_constant_buffer ubos[PIPE_MAX_CONSTANT_BUFFERS]; member
|
H A D | virgl_context.c | 135 if (binding->ubos[i].buffer == res) { in virgl_rebind_resource() 136 const struct pipe_constant_buffer *ubo = &binding->ubos[i]; in virgl_rebind_resource() 262 res = virgl_resource(binding->ubos[i].buffer); in virgl_attach_res_uniform_buffers() 655 pipe_resource_reference(&binding->ubos[index].buffer, NULL); in virgl_set_constant_buffer() 656 binding->ubos[index].buffer = buf->buffer; in virgl_set_constant_buffer() 658 pipe_resource_reference(&binding->ubos[index].buffer, buf->buffer); in virgl_set_constant_buffer() 660 binding->ubos[index] = *buf; in virgl_set_constant_buffer() 670 pipe_resource_reference(&binding->ubos[index].buffer, NULL); in virgl_set_constant_buffer() 1452 pipe_resource_reference(&binding->ubos[i].buffer, NULL); in virgl_release_shader_binding()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_context.h | 227 struct pipe_constant_buffer ubos[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS]; member 342 VkDescriptorBufferInfo ubos[PIPE_SHADER_TYPES][PIPE_MAX_CONSTANT_BUFFERS]; member
|
H A D | zink_context.c | 548 ctx->di.ubos[shader][slot].offset = ctx->ubos[shader][slot].buffer_offset; in update_descriptor_state_ubo() 550 ctx->di.ubos[shader][slot].buffer = res->obj->buffer; in update_descriptor_state_ubo() 551 ctx->di.ubos[shader][slot].range = ctx->ubos[shader][slot].buffer_size; in update_descriptor_state_ubo() 552 assert(ctx->di.ubos[shader][slot].range <= screen->info.props.limits.maxUniformBufferRange); in update_descriptor_state_ubo() 555 ctx->di.ubos[shader][slot].buffer = have_null_descriptors ? VK_NULL_HANDLE : null_buffer; in update_descriptor_state_ubo() 556 ctx->di.ubos[shader][slot].range = VK_WHOLE_SIZE; in update_descriptor_state_ubo() 1288 struct zink_resource *res = zink_resource(ctx->ubos[shader][index].buffer); in zink_set_constant_buffer() 1313 update |= ((index || zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_LAZY) && ctx->ubos[shade in zink_set_constant_buffer() [all...] |
H A D | zink_descriptors.c | 1297 VkDescriptorBufferInfo *info = &ctx->di.ubos[pstage][0]; in update_push_ubo_descriptors() 1416 info = &ctx->di.ubos[stage][index]; in update_descriptors_internal() 1619 void *hash_data = &ctx->di.ubos[shader][idx + k].range; in calc_descriptor_state_hash_ubo() 1623 hash = XXH32(&ctx->di.ubos[shader][idx + k].offset, sizeof(unsigned), hash); in calc_descriptor_state_hash_ubo()
|
H A D | zink_descriptors_lazy.c | 96 entry->offset = offsetof(struct zink_context, di.ubos[stage][index]); in init_template_entry() 205 /* dynamic ubos handled in push */ in zink_descriptor_program_init_lazy() 749 entry->offset = offsetof(struct zink_context, di.ubos[i][0]); in init_push_template_entry()
|
H A D | zink_blit.c | 401 util_blitter_save_fragment_constant_buffer_slot(ctx->blitter, ctx->ubos[PIPE_SHADER_FRAGMENT]); in zink_blit_begin()
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
H A D | pan_cmdstream.c | 1484 struct panfrost_ptr ubos = { 0 }; in panfrost_emit_const_buf() local 1487 ubos = pan_pool_alloc_desc_array(&batch->pool.base, in panfrost_emit_const_buf() 1491 ubos = pan_pool_alloc_desc_array(&batch->pool.base, in panfrost_emit_const_buf() 1502 panfrost_emit_ubo(ubos.cpu, ubo_count, transfer.gpu, sys_size); in panfrost_emit_const_buf() 1515 panfrost_emit_ubo(ubos.cpu, ubo, address, usz); in panfrost_emit_const_buf() 1522 return ubos.gpu; in panfrost_emit_const_buf() 1581 return ubos.gpu; in panfrost_emit_const_buf() 3136 mali_ptr ubos, unsigned ubo_count) in panfrost_emit_resources() 3148 panfrost_make_resource_table(T, PAN_TABLE_UBO, ubos, ubo_count); in panfrost_emit_resources() 3183 mali_ptr ubos, resource in panfrost_emit_shader() local 3134 panfrost_emit_resources(struct panfrost_batch *batch, enum pipe_shader_type stage, mali_ptr ubos, unsigned ubo_count) panfrost_emit_resources() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | GLSLTest.cpp | 9803 GLBuffer ubos; 9805 InitBuffer(program, "Ubo", ubos, 0, data, size, true); 9846 GLBuffer ubos; 9848 InitBuffer(program, "Ubo", ubos, 0, data, size, true); 9888 GLBuffer ubos; 9890 InitBuffer(program, "Ubo", ubos, 0, data, size, true); 9969 GLBuffer ubos; 9970 InitBuffer(program, "Ubo", ubos, 0, data, kMatrixCount, true); 10050 GLBuffer ubos[3]; 10052 InitBuffer(program, "Ubo[0]", ubos[ [all...] |
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/ |
H A D | nir_to_spirv.c | 57 SpvId ubos[2][5]; //8, 16, 32, unused, 64 member 1065 assert(!ctx->ubos[var->data.driver_location][idx]); in emit_bo() 1066 ctx->ubos[var->data.driver_location][idx] = var_id; in emit_bo()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | ContextVk.cpp | 1893 const std::vector<gl::InterfaceBlock> &ubos = programState.getUniformBlocks(); in handleDirtyShaderResourcesImpl() local 1895 for (const gl::InterfaceBlock &ubo : ubos) in handleDirtyShaderResourcesImpl()
|