fix spirv-reader test: add Block decoration

Fixes a SPIR-V validation error.

Change-Id: I51bf887d1e2b55760e5512648074ae349a90a15e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/74802
Auto-Submit: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
David Neto 2022-01-04 20:23:19 +00:00 committed by Tint LUCI CQ
parent 1372222215
commit 5791197e80
1 changed files with 1 additions and 0 deletions

View File

@ -370,6 +370,7 @@ TEST_F(SpvModuleScopeVarParserTest,
OpEntryPoint Vertex %main "main" %1 OpEntryPoint Vertex %main "main" %1
; scramble the member indices ; scramble the member indices
OpDecorate %10 Block
OpMemberDecorate %10 0 BuiltIn ClipDistance OpMemberDecorate %10 0 BuiltIn ClipDistance
OpMemberDecorate %10 1 BuiltIn CullDistance OpMemberDecorate %10 1 BuiltIn CullDistance
OpMemberDecorate %10 2 BuiltIn Position OpMemberDecorate %10 2 BuiltIn Position