[Mesa-dev] [RFC 00/11] GL_ARB_gpu_shader_fp64

Elie Tournier tournier.elie at gmail.com
Fri Mar 3 16:22:56 UTC 2017


From: Elie Tournier <elie.tournier at collabora.com>

This series is based on Ian's work about GL_ARB_gpu_shader_int64 [1].
The goal is to expose GL_ARB_shader_fp64 to OpenGL 3.0 GPUs.

Each function can be independently tested using shader_runner from piglit.
The piglit files are stored on github [2].

[1] https://lists.freedesktop.org/archives/mesa-dev/2016-November/136718.html
[2] https://github.com/Hopetech/libSoftFloat

Elie Tournier (11):
  glsl: Add "built-in" function to do abs(fp64)
  glsl: Add "built-in" function to do neg(fp64)
  glsl: Add "built-in" functions to do eq(fp64,fp64)
  glsl: Add "built-in" functions to do le(fp64,fp64)
  glsl: Add "built-in" functions to do lt(fp64,fp64)
  glsl: Add "built-in" functions to do add(fp64,fp64)
  glsl: Add "built-in" functions to do mul(fp64,fp64)
  glsl: Add "built-in" functions to do div(fp64,fp64)
  glsl: Add "built-in" functions to do fp32_to_fp64(fp32)
  glsl: Add "built-in" functions to do fp64_to_fp32(fp64)
  glsl: Add fp64 functions to the parser.

 src/compiler/Makefile.sources           |     1 +
 src/compiler/glsl/builtin_float64.h     | 24243 ++++++++++++++++++++++++++++++
 src/compiler/glsl/builtin_functions.cpp |    40 +
 src/compiler/glsl/builtin_functions.h   |    30 +
 src/compiler/glsl/float64.glsl          |  1378 ++
 src/compiler/glsl/generate_ir.cpp       |     1 +
 src/compiler/glsl/glcpp/glcpp-parse.y   |    10 +
 7 files changed, 25703 insertions(+)
 create mode 100644 src/compiler/glsl/builtin_float64.h
 create mode 100644 src/compiler/glsl/float64.glsl

-- 
2.11.0



More information about the mesa-dev mailing list