summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_query.c
diff options
context:
space:
mode:
authorBogDan Vatra <[email protected]>2016-01-05 21:44:16 +0200
committerJason Ekstrand <[email protected]>2016-01-14 07:30:46 -0800
commit102c74277f989703dfb3783c5c0b93e3731012bf (patch)
treec6ae01ac9788a4af5d2112e8e85e7e0e3815e135 /src/vulkan/anv_query.c
parent8ce2b0e1405b3d6d3590dcd3ce1ac2d04d228ad4 (diff)
WIP: Partially upgrade to vulkan v0.221.0
TODO, make use of: - VkPhysicalDeviceFeatures.drawIndirectFirstInstance, - VkPhysicalDeviceFeatures.inheritedQueries - VkPhysicalDeviceLimits.timestampComputeAndGraphics - VkSubmitInfo.pWaitDstStageMask - VkSubresourceLayout.arrayPitch - VkSamplerCreateInfo.anisotropyEnable
Diffstat (limited to 'src/vulkan/anv_query.c')
-rw-r--r--src/vulkan/anv_query.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vulkan/anv_query.c b/src/vulkan/anv_query.c
index 1bcac097104..d4c34c7f021 100644
--- a/src/vulkan/anv_query.c
+++ b/src/vulkan/anv_query.c
@@ -95,7 +95,7 @@ void anv_DestroyQueryPool(
VkResult anv_GetQueryPoolResults(
VkDevice _device,
VkQueryPool queryPool,
- uint32_t startQuery,
+ uint32_t firstQuery,
uint32_t queryCount,
size_t dataSize,
void* pData,
@@ -129,14 +129,14 @@ VkResult anv_GetQueryPoolResults(
for (uint32_t i = 0; i < queryCount; i++) {
switch (pool->type) {
case VK_QUERY_TYPE_OCCLUSION: {
- result = slot[startQuery + i].end - slot[startQuery + i].begin;
+ result = slot[firstQuery + i].end - slot[firstQuery + i].begin;
break;
}
case VK_QUERY_TYPE_PIPELINE_STATISTICS:
/* Not yet implemented */
break;
case VK_QUERY_TYPE_TIMESTAMP: {
- result = slot[startQuery + i].begin;
+ result = slot[firstQuery + i].begin;
break;
}
default:
@@ -147,14 +147,14 @@ VkResult anv_GetQueryPoolResults(
uint64_t *dst = pData;
dst[0] = result;
if (flags & VK_QUERY_RESULT_WITH_AVAILABILITY_BIT)
- dst[1] = slot[startQuery + i].available;
+ dst[1] = slot[firstQuery + i].available;
} else {
uint32_t *dst = pData;
if (result > UINT32_MAX)
result = UINT32_MAX;
dst[0] = result;
if (flags & VK_QUERY_RESULT_WITH_AVAILABILITY_BIT)
- dst[1] = slot[startQuery + i].available;
+ dst[1] = slot[firstQuery + i].available;
}
pData += stride;
@@ -168,7 +168,7 @@ VkResult anv_GetQueryPoolResults(
void anv_CmdResetQueryPool(
VkCommandBuffer commandBuffer,
VkQueryPool queryPool,
- uint32_t startQuery,
+ uint32_t firstQuery,
uint32_t queryCount)
{
ANV_FROM_HANDLE(anv_query_pool, pool, queryPool);
@@ -178,7 +178,7 @@ void anv_CmdResetQueryPool(
case VK_QUERY_TYPE_OCCLUSION:
case VK_QUERY_TYPE_TIMESTAMP: {
struct anv_query_pool_slot *slot = pool->bo.map;
- slot[startQuery + i].available = 0;
+ slot[firstQuery + i].available = 0;
break;
}
default: