File: DecorateUniform.spvasm

package info (click to toggle)
spirv-llvm-translator-14 14.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,640 kB
  • sloc: cpp: 47,664; lisp: 3,704; sh: 153; python: 43; makefile: 33
file content (26 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; REQUIRES: spirv-as

; RUN: spirv-as %s --target-env spv1.6 -o %t.spv
; RUN: spirv-val %t.spv
; RUN: llvm-spirv -to-text -o - %t.spv | FileCheck %s

; Check that the translator does not add the Shader/Matrix capability
; requirements for SPIR-V 1.6.

; CHECK-NOT: Capability Matrix
; CHECK-NOT: Capability Shader

               OpCapability Addresses
               OpCapability Kernel
               OpCapability UniformDecoration
               OpMemoryModel Physical64 OpenCL
               OpEntryPoint Kernel %2 "test"
               OpDecorate %uint_0 Uniform
       %uint = OpTypeInt 32 0
     %uint_0 = OpConstant %uint 0
       %void = OpTypeVoid
          %1 = OpTypeFunction %void
          %2 = OpFunction %void None %1
          %3 = OpLabel
               OpReturn
               OpFunctionEnd