Fix TimestampQueryTests
BUG=dawn:713 Change-Id: Ice1f9d948125daa68de661ad37bb07835ef9bec8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44940 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
ed16517e32
commit
3209df5a9c
|
@ -87,15 +87,15 @@ namespace dawn_native {
|
|||
if (timestamp.low <= u32(f32(0xFFFFFFFFu) / period)) {
|
||||
timestamps.t[index].low = u32(round(f32(timestamp.low) * period));
|
||||
} else {
|
||||
var lo : u32 = timestamp.low & 0xFFFF;
|
||||
var hi : u32 = timestamp.low >> 16;
|
||||
var lo : u32 = timestamp.low & 0xFFFFu;
|
||||
var hi : u32 = timestamp.low >> 16u;
|
||||
|
||||
var t0 : u32 = u32(round(f32(lo) * period));
|
||||
var t1 : u32 = u32(round(f32(hi) * period)) + (t0 >> 16);
|
||||
w = t1 >> 16;
|
||||
var t1 : u32 = u32(round(f32(hi) * period)) + (t0 >> 16u);
|
||||
w = t1 >> 16u;
|
||||
|
||||
var result : u32 = t1 << 16;
|
||||
result = result | (t0 & 0xFFFF);
|
||||
var result : u32 = t1 << 16u;
|
||||
result = result | (t0 & 0xFFFFu);
|
||||
timestamps.t[index].low = result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue