[Mesa-dev] [PATCH v2 0/7] GL_ARB_shader_draw_parameters
Kristian Høgsberg
krh at bitplanet.net
Wed Dec 16 15:47:04 PST 2015
From: Kristian Høgsberg Kristensen <krh at bitplanet.net>
Here's v2 of the GL_ARB_shader_draw_parameters series. I fixed up the
rebase damage and moved the flagging of BRW_NEW_VERTICES for
gl_DrawIDARB into the commit that adds that builtin.
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: Reemit vertex state between indirect multi draws
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 | 34 +++++++++-
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 | 4 ++
24 files changed, 300 insertions(+), 38 deletions(-)
--
2.5.0
More information about the mesa-dev
mailing list