mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
tint/transform: Polyfill bit-shift with RHS modulo
Fixed: tint:1453 Fixed: tint:1543 Change-Id: Idb5af752d7a3bb9e181cc47430ad4ddfb707873d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108440 Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
91e27f25f9
commit
02f04d914d
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 9
|
||||
; Bound: 11
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -13,8 +13,10 @@
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%uint_2 = OpConstant %uint 2
|
||||
%uint_31 = OpConstant %uint 31
|
||||
%f = OpFunction %void None %1
|
||||
%4 = OpLabel
|
||||
%8 = OpShiftLeftLogical %uint %uint_1 %uint_2
|
||||
%9 = OpBitwiseAnd %uint %uint_2 %uint_31
|
||||
%10 = OpShiftLeftLogical %uint %uint_1 %9
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user