}
tu_bo_list_init(&cmd_buffer->bo_list);
- tu_cmd_stream_init(&cmd_buffer->primary_cmd_stream);
+ tu_cmd_stream_init(&cmd_buffer->cs);
*pCommandBuffer = tu_cmd_buffer_to_handle(cmd_buffer);
for (unsigned i = 0; i < VK_PIPELINE_BIND_POINT_RANGE_SIZE; i++)
free(cmd_buffer->descriptors[i].push_set.set.mapped_ptr);
- tu_cmd_stream_finish(cmd_buffer->device, &cmd_buffer->primary_cmd_stream);
+ tu_cmd_stream_finish(cmd_buffer->device, &cmd_buffer->cs);
tu_bo_list_destroy(&cmd_buffer->bo_list);
vk_free(&cmd_buffer->pool->alloc, cmd_buffer);
}
cmd_buffer->record_result = VK_SUCCESS;
tu_bo_list_reset(&cmd_buffer->bo_list);
- tu_cmd_stream_reset(cmd_buffer->device, &cmd_buffer->primary_cmd_stream);
+ tu_cmd_stream_reset(cmd_buffer->device, &cmd_buffer->cs);
for (unsigned i = 0; i < VK_PIPELINE_BIND_POINT_RANGE_SIZE; i++) {
cmd_buffer->descriptors[i].dirty = 0;
cmd_buffer->status = TU_CMD_BUFFER_STATUS_RECORDING;
result = tu_cmd_stream_begin(cmd_buffer->device,
- &cmd_buffer->primary_cmd_stream, 4096);
+ &cmd_buffer->cs, 4096);
/* Put some stuff in so we do not have empty command buffers. */
- OUT_PKT7(&cmd_buffer->primary_cmd_stream, CP_NOP, 4);
- *cmd_buffer->primary_cmd_stream.cur++ = 0;
- *cmd_buffer->primary_cmd_stream.cur++ = 0;
- *cmd_buffer->primary_cmd_stream.cur++ = 0;
- *cmd_buffer->primary_cmd_stream.cur++ = 0;
+ OUT_PKT7(&cmd_buffer->cs, CP_NOP, 4);
+ *cmd_buffer->cs.cur++ = 0;
+ *cmd_buffer->cs.cur++ = 0;
+ *cmd_buffer->cs.cur++ = 0;
+ *cmd_buffer->cs.cur++ = 0;
return result;
}
{
TU_FROM_HANDLE(tu_cmd_buffer, cmd_buffer, commandBuffer);
- tu_cmd_stream_end(&cmd_buffer->primary_cmd_stream);
+ tu_cmd_stream_end(&cmd_buffer->cs);
cmd_buffer->status = TU_CMD_BUFFER_STATUS_EXECUTABLE;
return cmd_buffer->record_result;
uint32_t entry_count = 0;
for(uint32_t j = 0; j < submit->commandBufferCount; ++j) {
TU_FROM_HANDLE(tu_cmd_buffer, cmdbuf, submit->pCommandBuffers[j]);
- entry_count += cmdbuf->primary_cmd_stream.entry_count;
+ entry_count += cmdbuf->cs.entry_count;
}
struct drm_msm_gem_submit_cmd cmds[entry_count];
uint32_t entry_idx = 0;
for(uint32_t j = 0; j < submit->commandBufferCount; ++j) {
TU_FROM_HANDLE(tu_cmd_buffer, cmdbuf, submit->pCommandBuffers[j]);
- struct tu_cmd_stream *stream = &cmdbuf->primary_cmd_stream;
+ struct tu_cmd_stream *stream = &cmdbuf->cs;
for (unsigned i = 0; i < stream->entry_count; ++i, ++entry_idx) {
cmds[entry_idx].type = MSM_SUBMIT_CMD_BUF;
cmds[entry_idx].submit_idx = tu_bo_list_add(&bo_list, stream->entries[i].bo);