vulkan-1.0.0: Misc. field and argument renames
This commit is contained in:
@@ -217,7 +217,7 @@ VkResult anv_AllocateCommandBuffers(
|
||||
VkResult result = VK_SUCCESS;
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < pAllocateInfo->bufferCount; i++) {
|
||||
for (i = 0; i < pAllocateInfo->commandBufferCount; i++) {
|
||||
result = anv_create_cmd_buffer(device, pool, pAllocateInfo->level,
|
||||
&pCommandBuffers[i]);
|
||||
if (result != VK_SUCCESS)
|
||||
@@ -1010,7 +1010,7 @@ void anv_CmdPushConstants(
|
||||
|
||||
void anv_CmdExecuteCommands(
|
||||
VkCommandBuffer commandBuffer,
|
||||
uint32_t commandBuffersCount,
|
||||
uint32_t commandBufferCount,
|
||||
const VkCommandBuffer* pCmdBuffers)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, primary, commandBuffer);
|
||||
@@ -1019,7 +1019,7 @@ void anv_CmdExecuteCommands(
|
||||
|
||||
anv_assert(primary->state.subpass == &primary->state.pass->subpasses[0]);
|
||||
|
||||
for (uint32_t i = 0; i < commandBuffersCount; i++) {
|
||||
for (uint32_t i = 0; i < commandBufferCount; i++) {
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, secondary, pCmdBuffers[i]);
|
||||
|
||||
assert(secondary->level == VK_COMMAND_BUFFER_LEVEL_SECONDARY);
|
||||
|
||||
@@ -421,7 +421,7 @@ VkResult anv_AllocateDescriptorSets(
|
||||
struct anv_descriptor_set *set;
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < pAllocateInfo->setLayoutCount; i++) {
|
||||
for (i = 0; i < pAllocateInfo->descriptorSetCount; i++) {
|
||||
ANV_FROM_HANDLE(anv_descriptor_set_layout, layout,
|
||||
pAllocateInfo->pSetLayouts[i]);
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ VkResult anv_CreateInstance(
|
||||
if (pCreateInfo->pApplicationInfo->apiVersion != VK_MAKE_VERSION(0, 210, 1))
|
||||
return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionNameCount; i++) {
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
|
||||
bool found = false;
|
||||
for (uint32_t j = 0; j < ARRAY_SIZE(global_extensions); j++) {
|
||||
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i],
|
||||
@@ -671,7 +671,7 @@ VkResult anv_CreateDevice(
|
||||
|
||||
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO);
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionNameCount; i++) {
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
|
||||
bool found = false;
|
||||
for (uint32_t j = 0; j < ARRAY_SIZE(device_extensions); j++) {
|
||||
if (strcmp(pCreateInfo->ppEnabledExtensionNames[i],
|
||||
|
||||
@@ -87,7 +87,7 @@ anv_dump_image_to_ppm(struct anv_device *device,
|
||||
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
|
||||
.commandPool = commandPool,
|
||||
.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
|
||||
.bufferCount = 1,
|
||||
.commandBufferCount = 1,
|
||||
}, &cmd);
|
||||
assert(result == VK_SUCCESS);
|
||||
|
||||
|
||||
@@ -564,7 +564,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
|
||||
&(VkDescriptorSetAllocateInfo) {
|
||||
.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO,
|
||||
.descriptorPool = dummy_desc_pool,
|
||||
.setLayoutCount = 1,
|
||||
.descriptorSetCount = 1,
|
||||
.pSetLayouts = &device->meta_state.blit.ds_layout
|
||||
}, &set);
|
||||
anv_UpdateDescriptorSets(anv_device_to_handle(device),
|
||||
|
||||
@@ -60,9 +60,9 @@ VkResult anv_CreateQueryPool(
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
pool->type = pCreateInfo->queryType;
|
||||
pool->slots = pCreateInfo->entryCount;
|
||||
pool->slots = pCreateInfo->queryCount;
|
||||
|
||||
size = pCreateInfo->entryCount * slot_size;
|
||||
size = pCreateInfo->queryCount * slot_size;
|
||||
result = anv_bo_init_new(&pool->bo, device, size);
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail;
|
||||
|
||||
@@ -890,7 +890,7 @@ emit_query_availability(struct anv_batch *batch,
|
||||
void genX(CmdBeginQuery)(
|
||||
VkCommandBuffer commandBuffer,
|
||||
VkQueryPool queryPool,
|
||||
uint32_t entry,
|
||||
uint32_t query,
|
||||
VkQueryControlFlags flags)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
@@ -912,7 +912,7 @@ void genX(CmdBeginQuery)(
|
||||
switch (pool->type) {
|
||||
case VK_QUERY_TYPE_OCCLUSION:
|
||||
emit_ps_depth_count(&cmd_buffer->batch, &pool->bo,
|
||||
entry * sizeof(struct anv_query_pool_slot));
|
||||
query * sizeof(struct anv_query_pool_slot));
|
||||
break;
|
||||
|
||||
case VK_QUERY_TYPE_PIPELINE_STATISTICS:
|
||||
@@ -924,7 +924,7 @@ void genX(CmdBeginQuery)(
|
||||
void genX(CmdEndQuery)(
|
||||
VkCommandBuffer commandBuffer,
|
||||
VkQueryPool queryPool,
|
||||
uint32_t entry)
|
||||
uint32_t query)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
|
||||
@@ -932,10 +932,10 @@ void genX(CmdEndQuery)(
|
||||
switch (pool->type) {
|
||||
case VK_QUERY_TYPE_OCCLUSION:
|
||||
emit_ps_depth_count(&cmd_buffer->batch, &pool->bo,
|
||||
entry * sizeof(struct anv_query_pool_slot) + 8);
|
||||
query * sizeof(struct anv_query_pool_slot) + 8);
|
||||
|
||||
emit_query_availability(&cmd_buffer->batch, &pool->bo,
|
||||
entry * sizeof(struct anv_query_pool_slot) + 16);
|
||||
query * sizeof(struct anv_query_pool_slot) + 16);
|
||||
break;
|
||||
|
||||
case VK_QUERY_TYPE_PIPELINE_STATISTICS:
|
||||
@@ -950,11 +950,11 @@ void genX(CmdWriteTimestamp)(
|
||||
VkCommandBuffer commandBuffer,
|
||||
VkPipelineStageFlagBits pipelineStage,
|
||||
VkQueryPool queryPool,
|
||||
uint32_t entry)
|
||||
uint32_t query)
|
||||
{
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
|
||||
uint32_t offset = entry * sizeof(struct anv_query_pool_slot);
|
||||
uint32_t offset = query * sizeof(struct anv_query_pool_slot);
|
||||
|
||||
assert(pool->type == VK_QUERY_TYPE_TIMESTAMP);
|
||||
|
||||
@@ -977,7 +977,7 @@ void genX(CmdWriteTimestamp)(
|
||||
break;
|
||||
}
|
||||
|
||||
emit_query_availability(&cmd_buffer->batch, &pool->bo, entry + 16);
|
||||
emit_query_availability(&cmd_buffer->batch, &pool->bo, query + 16);
|
||||
}
|
||||
|
||||
#define alu_opcode(v) __gen_field((v), 20, 31)
|
||||
|
||||
Reference in New Issue
Block a user