diff options
| author | Chris Forbes <chrisforbes@google.com> | 2016-11-30 12:45:00 +1300 |
|---|---|---|
| committer | Chris Forbes <chrisforbes@google.com> | 2016-12-02 09:46:33 +1300 |
| commit | 5401d6c2e26983f080566a507927054c07cc8015 (patch) | |
| tree | 570acdbe15bd5ec11c22480d9801ecfb16a482f0 /layers/core_validation.cpp | |
| parent | 9af9657d589aca6e74f8ebfe0ac1ed4411c1703e (diff) | |
| download | usermoji-5401d6c2e26983f080566a507927054c07cc8015.tar.xz | |
layers: Require precision to match on interface between stages
Signed-off-by: Chris Forbes <chrisforbes@google.com>
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index ed32c5a4..f6fb7b0f 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -1732,6 +1732,16 @@ static bool validate_interface_between_stages(debug_report_data *report_data, sh pass = false; } } + if (a_it->second.is_relaxed_precision != b_it->second.is_relaxed_precision) { + if (log_msg(report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, /*dev*/ 0, + __LINE__, SHADER_CHECKER_INTERFACE_TYPE_MISMATCH, "SC", + "Decoration mismatch on location %u.%u: %s and %s stages differ in precision", + a_first.first, a_first.second, + producer_stage->name, + consumer_stage->name)) { + pass = false; + } + } a_it++; b_it++; } |
