[Mesa-dev] [PATCH 0/7] GL_ARB_shader_draw_parameters

Kristian Høgsberg Kristensen krh at bitplanet.net
Tue Dec 15 00:28:07 PST 2015


Hi,

Here's 7 patches to implement GL_ARB_shader_draw_parameters:

  https://www.opengl.org/registry/specs/ARB/shader_draw_parameters.txt

and I have few new piglit tests for the extension as well.

Kristian

Kristian Høgsberg Kristensen (7):
  mesa/vbo: Add draw_id field to struct _mesa_prim
  mesa: Add core mesa support for GL_ARB_shader_draw_parameters
  i965: Assert that SYSTEM_VALUE_VERTEX_ID gets lowered
  i965: Add support for gl_BaseVertexARB and gl_BaseInstanceARB
  i965: Add support for gl_DrawIDARB and enable extension
  nir: Teach nir_opt_algebraic about adding and subtracting the same
    thing
  i965: Reduce vertex state reemission

 src/glsl/builtin_variables.cpp                    |  5 ++
 src/glsl/glsl_parser_extras.cpp                   |  1 +
 src/glsl/glsl_parser_extras.h                     |  2 +
 src/glsl/nir/nir.c                                |  8 +++
 src/glsl/nir/nir_intrinsics.h                     |  2 +
 src/glsl/nir/nir_opt_algebraic.py                 |  4 ++
 src/glsl/nir/shader_enums.h                       | 20 ++++++
 src/glsl/standalone_scaffolding.cpp               |  1 +
 src/mesa/drivers/dri/i965/brw_compiler.h          |  3 +
 src/mesa/drivers/dri/i965/brw_context.h           | 18 +++++-
 src/mesa/drivers/dri/i965/brw_draw.c              | 44 ++++++++++++-
 src/mesa/drivers/dri/i965/brw_draw_upload.c       | 78 +++++++++++++++++++----
 src/mesa/drivers/dri/i965/brw_fs.cpp              |  5 +-
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp          | 18 +++++-
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp      | 17 ++++-
 src/mesa/drivers/dri/i965/brw_vec4.cpp            | 20 +++++-
 src/mesa/drivers/dri/i965/brw_vec4_nir.cpp        | 18 +++++-
 src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp | 11 +++-
 src/mesa/drivers/dri/i965/gen8_draw_upload.c      | 65 +++++++++++++++----
 src/mesa/drivers/dri/i965/intel_extensions.c      |  1 +
 src/mesa/main/extensions_table.h                  |  1 +
 src/mesa/main/mtypes.h                            |  1 +
 src/mesa/vbo/vbo.h                                |  1 +
 src/mesa/vbo/vbo_exec_array.c                     |  5 ++
 24 files changed, 311 insertions(+), 38 deletions(-)

-- 
2.5.0



More information about the mesa-dev mailing list