[Mesa-dev] [PATCH v4 00/10] Initial gl_spirv support in Mesa and i965

Alejandro Piñeiro apinheiro at igalia.com
Mon Jan 15 14:45:35 UTC 2018


This is the 4rd version of the series adding initial support for
ARB_gl_spirv. This series is equal to v3 we sent one month ago [1],
but rebased against today master.

As with v3, we are splitting the series, so after this series we will
send one for ARB_spirv_extensions.

Notice also that some patches from version 2 were merged in
master. These were already reviewed favorably and were fairly
independent from the rest of the series.

There are still 5 patches in this new series with a Reviewed-by tag
that we didn't merge yet because we consider they should go in with
the rest of the series. The patches missing review are 01, 02, 03, 04
and 07.

As usual, a git tree containing this series can be found at
<https://github.com/Igalia/mesa/tree/arb_gl_spirv-series1-v4> and the
larger, work-in-progress, often force-pushed series at

Thanks for reviewing

[1] https://lists.freedesktop.org/archives/mesa-dev/2017-December/180039.html

Alejandro Piñeiro (2):
  i965: initialize SPIR-V capabilities
  nir/spirv: add gl_spirv_validation method

Eduardo Lima Mitev (6):
  mesa: Add a reference to gl_shader_spirv_data to gl_linked_shader
  mesa/glspirv: Add _mesa_spirv_link_shaders() function
  mesa/program: Link SPIR-V shaders using the SPIR-V code-path
  mesa/glspirv: Add a _mesa_spirv_to_nir() function
  i965: Call spirv_to_nir() instead of glsl_to_nir() for SPIR-V shaders
  i965: Don't call process_glsl_ir() for SPIR-V shaders

Nicolai Hähnle (2):
  mesa: add gl_constants::SpirVCapabilities
  mesa: Implement glSpecializeShaderARB

 src/compiler/spirv/nir_spirv.h          |   5 +
 src/compiler/spirv/spirv_to_nir.c       | 191 +++++++++++++++++++++++---
 src/mesa/drivers/dri/i965/brw_context.c |  20 +++
 src/mesa/drivers/dri/i965/brw_link.cpp  |   3 +-
 src/mesa/drivers/dri/i965/brw_program.c |  10 +-
 src/mesa/main/glspirv.c                 | 236 +++++++++++++++++++++++++++++++-
 src/mesa/main/glspirv.h                 |  11 ++
 src/mesa/main/mtypes.h                  |  11 ++
 src/mesa/main/shaderobj.c               |   1 +
 src/mesa/program/ir_to_mesa.cpp         |   6 +-
 10 files changed, 472 insertions(+), 22 deletions(-)


More information about the mesa-dev mailing list