aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/glsl_tests/minmax.f32.glsl
blob: 12b7a33c134c7de66e381a5191bb05ad0dcd5526 (plain)
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
27
28
29
30
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s

; FUNC-LABEL: {{^}}@min_f32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_min_f32
; GCN-NEXT: epilog

#shader fs min_f32
#version 400
flat in vec2 v;
void main() {
    gl_FragColor.x = min(v.x, v.y);
}


; FUNC-LABEL: {{^}}@max_f32:
; GCN: main
; GCN: v_interp_mov
; GCN: v_interp_mov
; GCN-NEXT: v_max_f32
; GCN-NEXT: epilog

#shader fs max_f32
#version 400
flat in vec2 v;
void main() {
    gl_FragColor.x = max(v.x, v.y);
}