Roll Tint from 3cdb8e3c3e to 0b39270e01 (8 revisions)

Also contains a fix for src/dawn_native/CompilationMessages.cpp, where
the tint::Source structure has changed in a breaking way.

https://dawn.googlesource.com/tint.git/+log/3cdb8e3c3e0a..0b39270e01ce

Bug: None
Change-Id: If801fa85200316012916b24324fd39d275d1fd2f
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/78720
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Dawn Autoroller 2022-01-31 07:35:21 +00:00 committed by Dawn LUCI CQ
parent f8f78f145d
commit a6222d2c5b
2 changed files with 3 additions and 3 deletions

2
DEPS
View File

@ -113,7 +113,7 @@ deps = {
# WGSL support # WGSL support
'third_party/tint': { 'third_party/tint': {
'url': '{dawn_git}/tint@3cdb8e3c3e0a8affa648d5a5031d5ff9f35633f9', 'url': '{dawn_git}/tint@0b39270e01ce2327dd8c01d8d7192e823cec4424',
}, },
# GLFW for tests and samples # GLFW for tests and samples

View File

@ -67,8 +67,8 @@ namespace dawn::native {
uint64_t offset = 0; uint64_t offset = 0;
uint64_t length = 0; uint64_t length = 0;
if (lineNum && linePos && diagnostic.source.file_content) { if (lineNum && linePos && diagnostic.source.file) {
const auto& lines = diagnostic.source.file_content->lines; const auto& lines = diagnostic.source.file->content.lines;
size_t i = 0; size_t i = 0;
// To find the offset of the message position, loop through each of the first lineNum-1 // To find the offset of the message position, loop through each of the first lineNum-1
// lines and add it's length (+1 to account for the line break) to the offset. // lines and add it's length (+1 to account for the line break) to the offset.