Skip to content

Commit

Permalink
layers: Fix ValidateQueryPoolStride 64-bits result check
Browse files Browse the repository at this point in the history
  • Loading branch information
rg3igalia authored and jzulauf-lunarg committed Jun 17, 2019
1 parent e59322c commit 9881b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/core_validation.cpp
Expand Up @@ -12952,7 +12952,7 @@ bool CoreChecks::ValidateQueryPoolStride(const std::string &vuid_not_64, const s
const char *parameter_name, const uint64_t parameter_value,
const VkQueryResultFlags flags) {
bool skip = false;
if (flags == VK_QUERY_RESULT_64_BIT) {
if (flags & VK_QUERY_RESULT_64_BIT) {
static const int condition_multiples = 0b0111;
if ((stride & condition_multiples) || (parameter_value & condition_multiples)) {
skip |= log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT, 0, vuid_64,
Expand Down

0 comments on commit 9881b73

Please sign in to comment.