[Mesa-dev] [PATCH 0/5] Add new SPIR-V functions in NIR

Juan A. Suarez Romero jasuarez at igalia.com
Mon Jun 12 16:33:53 UTC 2017


This short series of 5 patches extend a couple of functions SPIR-V functions to
support 64-bit, as well as it adds new functions defined in GLSL.450.std.

The first 2 commits add support for 64-bit float-point types in Step() and
SmoothStep().

The latest 3 commits implement GLSL.std.450 NMin(), NMax() and NClamp() SPIR-V
instructions.


Juan A. Suarez Romero (5):
  nir: sge operation is defined for floating-point types
  nir: add support for 64-bit in SmoothStep function
  nir: implement GLSL.std.450 NMin operation
  nir: implement GLSL.std.450 NMax operation
  nir: implement GLSL.std.450 NClamp operation

 src/compiler/nir/nir_opcodes.py  |  2 +-
 src/compiler/spirv/vtn_glsl450.c | 58 +++++++++++++++++++++++++++++++++++++---
 2 files changed, 56 insertions(+), 4 deletions(-)

-- 
2.9.4



More information about the mesa-dev mailing list