Lines Matching refs:statistics

37  *    statistics is returned regardless of whether or not a pipeline cache
41 * statistics is returned regardless of whether or not
298 std::vector<VkPipelineExecutableStatisticKHR> statistics[PIPELINE_CACHE_NDX_COUNT];
318 statistics[ndx].resize(statisticCount);
321 deMemset(&statistics[ndx][statNdx], 0, sizeof(statistics[ndx][statNdx]));
322 statistics[ndx][statNdx].sType = VK_STRUCTURE_TYPE_PIPELINE_EXECUTABLE_STATISTIC_KHR;
323 statistics[ndx][statNdx].pNext = DE_NULL;
325 VK_CHECK(vk.getPipelineExecutableStatisticsKHR(vkDevice, &pipelineExecutableInfo, &statisticCount, &statistics[ndx][0]));
329 if (!checkString(statistics[ndx][statNdx].name, DE_LENGTH_OF_ARRAY(statistics[ndx][statNdx].name)))
336 if (deMemCmp(statistics[ndx][statNdx].name, statistics[ndx][otherNdx].name,
337 DE_LENGTH_OF_ARRAY(statistics[ndx][statNdx].name)) == 0)
343 if (!checkString(statistics[ndx][statNdx].description, DE_LENGTH_OF_ARRAY(statistics[ndx][statNdx].description)))
348 if (statistics[ndx][statNdx].format == VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_BOOL32_KHR)
350 if (statistics[ndx][statNdx].value.b32 != VK_TRUE && statistics[ndx][statNdx].value.b32 != VK_FALSE)
358 if (statistics[0].size() != statistics[1].size())
360 return tcu::TestStatus::fail("Identical pipelines have different numbers of statistics");
363 if (statistics[0].size() == 0)
365 return tcu::TestStatus::pass("No statistics reported");
369 for (deUint32 statNdx0 = 0; statNdx0 < statistics[0].size(); statNdx0++)
372 for (; statNdx1 < statistics[1].size(); statNdx1++)
374 if (deMemCmp(statistics[0][statNdx0].name, statistics[1][statNdx1].name,
375 DE_LENGTH_OF_ARRAY(statistics[0][statNdx0].name)) == 0)
380 if (statNdx1 >= statistics[1].size())
382 return tcu::TestStatus::fail("Identical pipelines have different statistics");
385 if (deMemCmp(statistics[0][statNdx0].description, statistics[1][statNdx1].description,
386 DE_LENGTH_OF_ARRAY(statistics[0][statNdx0].description)) != 0)
391 if (statistics[0][statNdx0].format != statistics[1][statNdx1].format)
393 return tcu::TestStatus::fail("Identical pipelines have statistics with different formats");
396 switch (statistics[0][statNdx0].format)
400 bool match = statistics[0][statNdx0].value.b32 == statistics[1][statNdx1].value.b32;
402 << statistics[0][statNdx0].name << ": "
403 << (statistics[0][statNdx0].value.b32 ? "VK_TRUE" : "VK_FALSE")
405 << " (" << statistics[0][statNdx0].description << ")"
411 bool match = statistics[0][statNdx0].value.i64 == statistics[1][statNdx1].value.i64;
413 << statistics[0][statNdx0].name << ": "
414 << statistics[0][statNdx0].value.i64
416 << " (" << statistics[0][statNdx0].description << ")"
422 bool match = statistics[0][statNdx0].value.u64 == statistics[1][statNdx1].value.u64;
424 << statistics[0][statNdx0].name << ": "
425 << statistics[0][statNdx0].value.u64
427 << " (" << statistics[0][statNdx0].description << ")"
433 bool match = statistics[0][statNdx0].value.f64 == statistics[1][statNdx1].value.f64;
435 << statistics[0][statNdx0].name << ": "
436 << statistics[0][statNdx0].value.f64
438 << " (" << statistics[0][statNdx0].description << ")"