[Mesa-dev] [PATCH 00/42] Some various KHR_no_error patches

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Jun 27 11:20:03 UTC 2017


Hi,

This series adds KHR_no_error support to various GL calls, mostly
the ones used by the DOW3 benchmark. Piglit updates are coming shortly.

I didn't do any benchmarks, but this should save few CPU time here and there.

Please review,
Thanks!

Samuel Pitoiset (42):
  mesa: pass the 'caller' function to attach_shader()
  mesa: rename attach_shader() to attach_shader_err()
  mesa: add KHR_no_error support for glAttachShader() and
    glAttachObjectARB()
  mesa: pass the 'caller' function to create_shader()
  mesa: rename create_shader() to create_shader_err()
  mesa: add KHR_no_error support for glCreateShader() and
    glCreateShaderObjectARB()
  mesa: add cull_face() helper
  mesa: add KHR_no_error support for glCullFace()
  mesa: add front_face() helper
  mesa: add KHR_no_error support for glFrontFace()
  mesa: add depth_func() helper
  mesa: add KHR_no_error support for glDepthFunc()
  mesa: add KHR_no_error support for glDepthRangeIndexed()
  mesa: add bind_texture_unit() helper
  mesa: add KHR_no_error support for glBindTextureUnit()
  mesa: prepare create_buffers() helper for KHR_no_error support
  mesa: add KHR_no_error support for gl*Buffers()
  mesa: fix an error message in create_textures()
  mesa: prepare create_textures() helper for KHR_no_error support
  mesa: add KHR_no_error support for gl*Textures()
  mesa: prepare create_samplers() helper for KHR_no_error support
  mesa: add KHR_no_error support for gl*Samplers()
  mesa: prepare create_program_pipelines() for KHR_no_error support
  mesa: add KHR_no_error support for gl*ProgramPipelines()
  mesa: prepare create_render_buffers() for KHR_no_error support
  mesa: add KHR_no_error support for gl*Renderbuffers()
  mesa: add KHR_no_error support for glCheckFramebufferStatus()
  mesa: add client_wait_sync() helper
  mesa: add KHR_no_error support for glClientWaitSync()
  mesa: add fence_sync() helper
  mesa: add KHR_no_error support for glFenceSync()
  mesa: add uniform_block_binding() helper
  mesa: add KHR_no_error support for glUniformBlockBinding()
  mesa: add shader_storage_block_binding() helper
  mesa: add KHR_no_error support for glShaderStorageBlockBinding()
  mesa: add KHR_no_error support for glVertex*AttribBinding()
  mesa: create read_buffer_err() and always inline read_buffer()
  mesa: add KHR_no_error support for gl*ReadBuffer()
  mesa: add bind_attrib_location() helper
  mesa: add KHR_no_error support for glBindAttribLocation()
  mesa: add clear() helper
  mesa: add KHR_no_error support for glClear()

 src/mapi/glapi/gen/ARB_direct_state_access.xml     |  16 +--
 src/mapi/glapi/gen/ARB_framebuffer_object.xml      |   4 +-
 src/mapi/glapi/gen/ARB_sampler_objects.xml         |   2 +-
 src/mapi/glapi/gen/ARB_separate_shader_objects.xml |   2 +-
 .../glapi/gen/ARB_shader_storage_buffer_object.xml |   2 +-
 src/mapi/glapi/gen/ARB_sync.xml                    |   4 +-
 src/mapi/glapi/gen/ARB_uniform_buffer_object.xml   |   2 +-
 src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml   |   2 +-
 src/mapi/glapi/gen/ARB_viewport_array.xml          |   2 +-
 src/mapi/glapi/gen/gl_API.xml                      |  24 ++---
 src/mesa/main/bufferobj.c                          |  61 +++++++----
 src/mesa/main/bufferobj.h                          |   6 ++
 src/mesa/main/buffers.c                            |  79 +++++++++++---
 src/mesa/main/buffers.h                            |   5 +
 src/mesa/main/clear.c                              |  62 +++++++----
 src/mesa/main/clear.h                              |   2 +
 src/mesa/main/depth.c                              |  59 +++++++----
 src/mesa/main/depth.h                              |   5 +-
 src/mesa/main/fbobject.c                           |  56 ++++++++--
 src/mesa/main/fbobject.h                           |   9 ++
 src/mesa/main/pipelineobj.c                        |  47 ++++++---
 src/mesa/main/pipelineobj.h                        |   6 ++
 src/mesa/main/polygon.c                            |  76 ++++++++++----
 src/mesa/main/polygon.h                            |  10 +-
 src/mesa/main/samplerobj.c                         |  51 ++++++---
 src/mesa/main/samplerobj.h                         |   7 ++
 src/mesa/main/shader_query.cpp                     |  38 +++++--
 src/mesa/main/shaderapi.c                          | 114 +++++++++++++++-----
 src/mesa/main/shaderapi.h                          |  16 ++-
 src/mesa/main/syncobj.c                            |  94 +++++++++++------
 src/mesa/main/syncobj.h                            |   6 ++
 src/mesa/main/texobj.c                             | 116 ++++++++++++++-------
 src/mesa/main/texobj.h                             |   9 ++
 src/mesa/main/uniforms.c                           |  67 +++++++++---
 src/mesa/main/uniforms.h                           |  11 ++
 src/mesa/main/varray.c                             |  23 ++++
 src/mesa/main/varray.h                             |   7 ++
 src/mesa/main/viewport.c                           |   9 ++
 src/mesa/main/viewport.h                           |   3 +
 39 files changed, 823 insertions(+), 291 deletions(-)

-- 
2.13.2



More information about the mesa-dev mailing list