xref: /third_party/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/div.glsl
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
1bf215546Sopenharmony_ci; RUN: ./amdgcn_glslc %s | FileCheck -check-prefix=GCN -check-prefix=FUNC %s
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_ci; FUNC-LABEL: {{^}}@div:
4bf215546Sopenharmony_ci; GCN: main
5bf215546Sopenharmony_ci; GCN: v_interp_mov
6bf215546Sopenharmony_ci; GCN: v_interp_mov
7bf215546Sopenharmony_ci; GCN-NEXT: v_rcp_f32
8bf215546Sopenharmony_ci; GCN-NEXT: v_mul_f32
9bf215546Sopenharmony_ci; GCN-NEXT: epilog
10bf215546Sopenharmony_ci
11bf215546Sopenharmony_ci#shader fs div
12bf215546Sopenharmony_ci#version 400
13bf215546Sopenharmony_ciflat in vec2 v;
14bf215546Sopenharmony_civoid main() {
15bf215546Sopenharmony_ci    gl_FragColor.x = v.x / v.y;
16bf215546Sopenharmony_ci}
17bf215546Sopenharmony_ci
18bf215546Sopenharmony_ci
19bf215546Sopenharmony_ci; FUNC-LABEL: {{^}}@rcp:
20bf215546Sopenharmony_ci; GCN: main
21bf215546Sopenharmony_ci; GCN: v_interp_mov
22bf215546Sopenharmony_ci; GCN-NEXT: v_rcp_f32
23bf215546Sopenharmony_ci; GCN-NEXT: epilog
24bf215546Sopenharmony_ci
25bf215546Sopenharmony_ci#shader fs rcp
26bf215546Sopenharmony_ci#version 400
27bf215546Sopenharmony_ciflat in float x;
28bf215546Sopenharmony_civoid main() {
29bf215546Sopenharmony_ci    gl_FragColor.x = 1 / x;
30bf215546Sopenharmony_ci}
31

Indexes created Thu Nov 07 10:32:03 CST 2024