summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeonsi/glsl_tests/log2.glsl
blob: 623357addb66e9f0296e59123bb5c3949a00523b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s

; FUNC-LABEL: {{^}}@log2:
; GCN: main
; GCN: v_interp_mov
; GCN-NEXT: v_log_f32
; GCN-NEXT: epilog

#shader fs log2
#version 400
flat in float f;
void main() {
    gl_FragColor.x = log2(f);
}