Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / gallium / drivers / radeonsi / glsl_tests / bitfield_extract.glsl
1 ; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3 ; FUNC-LABEL: {{^}}@bfe_i32:
4 ; GCN: main
5 ; GCN: v_interp_mov
6 ; GCN: v_interp_mov
7 ; GCN: v_interp_mov
8 ; GCN-NEXT: v_bfe_i32
9 ; GCN-NEXT: epilog
10
11 #shader fs bfe_i32
12 #version 400
13 flat in ivec3 v;
14 out ivec4 o;
15 void main() {
16 o.x = bitfieldExtract(v.x, v.y, v.z);
17 }
18
19
20 ; FUNC-LABEL: {{^}}@bfe_u32:
21 ; GCN: main
22 ; GCN: v_interp_mov
23 ; GCN: v_interp_mov
24 ; GCN: v_interp_mov
25 ; GCN-NEXT: v_bfe_u32
26 ; GCN-NEXT: epilog
27
28 #shader fs bfe_u32
29 #version 400
30 flat in uvec3 v;
31 out uvec4 o;
32 void main() {
33 o.x = bitfieldExtract(v.x, int(v.y), int(v.z));
34 }