projects
/
mesa.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
radeonsi: add GLSL lit tests
[mesa.git]
/
src
/
gallium
/
drivers
/
radeonsi
/
glsl_tests
/
div.glsl
1
; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2
3
; FUNC-LABEL: {{^}}@div:
4
; GCN: main
5
; GCN: v_interp_mov
6
; GCN: v_interp_mov
7
; GCN-NEXT: v_rcp_f32
8
; GCN-NEXT: v_mul_f32
9
; GCN-NEXT: epilog
10
11
#shader fs div
12
#version 400
13
flat in vec2 v;
14
void main() {
15
gl_FragColor.x = v.x / v.y;
16
}
17
18
19
; FUNC-LABEL: {{^}}@rcp:
20
; GCN: main
21
; GCN: v_interp_mov
22
; GCN-NEXT: v_rcp_f32
23
; GCN-NEXT: epilog
24
25
#shader fs rcp
26
#version 400
27
flat in float x;
28
void main() {
29
gl_FragColor.x = 1 / x;
30
}