mesa.git
7 years agomesa: add KHR_no_error support to glDeleteBuffers()
Samuel Pitoiset [Wed, 19 Jul 2017 11:35:11 +0000 (13:35 +0200)]
mesa: add KHR_no_error support to glDeleteBuffers()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add delete_buffers() helper
Samuel Pitoiset [Wed, 19 Jul 2017 11:32:28 +0000 (13:32 +0200)]
mesa: add delete_buffers() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glNamedFramebufferRenderbuffer()
Samuel Pitoiset [Wed, 19 Jul 2017 10:32:42 +0000 (12:32 +0200)]
mesa: add KHR_no_error support to glNamedFramebufferRenderbuffer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glFramebufferRenderbuffer()
Samuel Pitoiset [Wed, 19 Jul 2017 10:28:21 +0000 (12:28 +0200)]
mesa: add KHR_no_error support to glFramebufferRenderbuffer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add framebuffer_renderbuffer_error() helper
Samuel Pitoiset [Wed, 19 Jul 2017 10:24:31 +0000 (12:24 +0200)]
mesa: add framebuffer_renderbuffer_error() helper

And make framebuffer_renderbuffer() always inline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glDeleteTextures()
Samuel Pitoiset [Wed, 19 Jul 2017 09:57:22 +0000 (11:57 +0200)]
mesa: add KHR_no_error support to glDeleteTextures()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add delete_textures() helper
Samuel Pitoiset [Wed, 19 Jul 2017 09:55:05 +0000 (11:55 +0200)]
mesa: add delete_textures() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glNamedFramebufferDrawBuffer()
Samuel Pitoiset [Wed, 19 Jul 2017 09:19:16 +0000 (11:19 +0200)]
mesa: add KHR_no_error support to glNamedFramebufferDrawBuffer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glDrawBuffer()
Samuel Pitoiset [Wed, 19 Jul 2017 09:14:48 +0000 (11:14 +0200)]
mesa: add KHR_no_error support to glDrawBuffer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add draw_buffer_error() helper
Samuel Pitoiset [Wed, 19 Jul 2017 09:12:16 +0000 (11:12 +0200)]
mesa: add draw_buffer_error() helper

And make draw_buffer() always inline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBindTextures()
Samuel Pitoiset [Fri, 21 Jul 2017 09:05:39 +0000 (11:05 +0200)]
mesa: add KHR_no_error support to glBindTextures()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add bind_textures() helper
Samuel Pitoiset [Fri, 21 Jul 2017 09:03:09 +0000 (11:03 +0200)]
mesa: add bind_textures() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBindTexture()
Samuel Pitoiset [Wed, 19 Jul 2017 09:05:31 +0000 (11:05 +0200)]
mesa: add KHR_no_error support to glBindTexture()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add bind_texture() helper
Samuel Pitoiset [Wed, 19 Jul 2017 09:03:48 +0000 (11:03 +0200)]
mesa: add bind_texture() helper

For KHR_no_error support.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: rename bind_texture() to bind_texture_object()
Samuel Pitoiset [Wed, 19 Jul 2017 08:59:03 +0000 (10:59 +0200)]
mesa: rename bind_texture() to bind_texture_object()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glMemoryBarrierByRegion()
Samuel Pitoiset [Wed, 19 Jul 2017 08:36:17 +0000 (10:36 +0200)]
mesa: add KHR_no_error support to glMemoryBarrierByRegion()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add memory_barrier_by_region() helper
Samuel Pitoiset [Wed, 19 Jul 2017 08:34:06 +0000 (10:34 +0200)]
mesa: add memory_barrier_by_region() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glMultiDrawArrays()
Samuel Pitoiset [Wed, 19 Jul 2017 08:21:09 +0000 (10:21 +0200)]
mesa: add KHR_no_error support to glMultiDrawArrays()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glMinSampleShading()
Samuel Pitoiset [Wed, 19 Jul 2017 08:01:22 +0000 (10:01 +0200)]
mesa: add KHR_no_error support to glMinSampleShading()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add min_sample_shading() helper
Samuel Pitoiset [Wed, 19 Jul 2017 07:59:49 +0000 (09:59 +0200)]
mesa: add min_sample_shading() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBlendEquationSeparate()
Samuel Pitoiset [Wed, 19 Jul 2017 07:53:49 +0000 (09:53 +0200)]
mesa: add KHR_no_error support to glBlendEquationSeparate()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add blend_equation_separate() helper
Samuel Pitoiset [Wed, 19 Jul 2017 07:51:37 +0000 (09:51 +0200)]
mesa: add blend_equation_separate() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glPrimitiveRestartIndex()
Samuel Pitoiset [Wed, 19 Jul 2017 07:40:49 +0000 (09:40 +0200)]
mesa: add KHR_no_error support to glPrimitiveRestartIndex()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add primitive_restart_index() helper
Samuel Pitoiset [Wed, 19 Jul 2017 07:39:42 +0000 (09:39 +0200)]
mesa: add primitive_restart_index() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glGenerate*Mipmap()
Samuel Pitoiset [Tue, 18 Jul 2017 19:25:46 +0000 (21:25 +0200)]
mesa: add KHR_no_error support to glGenerate*Mipmap()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add generate_texture_mipmap_error() helper
Samuel Pitoiset [Tue, 18 Jul 2017 19:21:50 +0000 (21:21 +0200)]
mesa: add generate_texture_mipmap_error() helper

And make generate_texture_mipmap() always inline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glDeleteSamplers()
Samuel Pitoiset [Tue, 18 Jul 2017 18:48:40 +0000 (20:48 +0200)]
mesa: add KHR_no_error support to glDeleteSamplers()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add delete_samplers() helper
Samuel Pitoiset [Tue, 18 Jul 2017 18:46:19 +0000 (20:46 +0200)]
mesa: add delete_samplers() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error to glDeleteVertexArrays()
Samuel Pitoiset [Tue, 18 Jul 2017 16:18:59 +0000 (18:18 +0200)]
mesa: add KHR_no_error to glDeleteVertexArrays()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add delete_vertex_arrays() helper
Samuel Pitoiset [Tue, 18 Jul 2017 16:17:35 +0000 (18:17 +0200)]
mesa: add delete_vertex_arrays() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error to glBindVertexArray()
Samuel Pitoiset [Tue, 18 Jul 2017 16:11:26 +0000 (18:11 +0200)]
mesa: add KHR_no_error to glBindVertexArray()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add bind_vertex_array() helper
Samuel Pitoiset [Tue, 18 Jul 2017 16:08:47 +0000 (18:08 +0200)]
mesa: add bind_vertex_array() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glInvalidate*()
Samuel Pitoiset [Tue, 18 Jul 2017 16:02:51 +0000 (18:02 +0200)]
mesa: add KHR_no_error support to glInvalidate*()

These are just no-op because we don't actually do anything
useful in the errors path.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glRead*Pixels*()
Samuel Pitoiset [Tue, 18 Jul 2017 15:30:54 +0000 (17:30 +0200)]
mesa: add KHR_no_error support to glRead*Pixels*()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add read_pixels() helper
Samuel Pitoiset [Tue, 18 Jul 2017 15:26:34 +0000 (17:26 +0200)]
mesa: add read_pixels() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glMultiDraw*Indirect*()
Samuel Pitoiset [Tue, 18 Jul 2017 13:51:58 +0000 (15:51 +0200)]
mesa: add KHR_no_error support to glMultiDraw*Indirect*()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glMultiDrawElementsBaseVertex()
Samuel Pitoiset [Tue, 18 Jul 2017 13:13:44 +0000 (15:13 +0200)]
mesa: add KHR_no_error support to glMultiDrawElementsBaseVertex()

Just skip validation when no_error is enabled.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glVertexArrayBindingDivisor()
Samuel Pitoiset [Tue, 18 Jul 2017 13:39:13 +0000 (15:39 +0200)]
mesa: add KHR_no_error support to glVertexArrayBindingDivisor()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glVertexBindingDivisor()
Samuel Pitoiset [Tue, 18 Jul 2017 13:35:23 +0000 (15:35 +0200)]
mesa: add KHR_no_error support to glVertexBindingDivisor()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to gl{Create,Gen}VertexArrays()
Samuel Pitoiset [Tue, 18 Jul 2017 13:21:22 +0000 (15:21 +0200)]
mesa: add KHR_no_error support to gl{Create,Gen}VertexArrays()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add gen_vertex_arrays_err() helper
Samuel Pitoiset [Tue, 18 Jul 2017 13:18:35 +0000 (15:18 +0200)]
mesa: add gen_vertex_arrays_err() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glTextureStorage*D()
Samuel Pitoiset [Tue, 18 Jul 2017 12:42:59 +0000 (14:42 +0200)]
mesa: add KHR_no_error support to glTextureStorage*D()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: rename texturestorage() to texturestorage_error()
Samuel Pitoiset [Tue, 18 Jul 2017 12:36:18 +0000 (14:36 +0200)]
mesa: rename texturestorage() to texturestorage_error()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glTexStorage*D()
Samuel Pitoiset [Tue, 18 Jul 2017 12:14:48 +0000 (14:14 +0200)]
mesa: add KHR_no_error support to glTexStorage*D()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: rename texstorage() to texstorage_error()
Samuel Pitoiset [Tue, 18 Jul 2017 12:06:05 +0000 (14:06 +0200)]
mesa: rename texstorage() to texstorage_error()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add texture_storage_error() helper
Samuel Pitoiset [Tue, 18 Jul 2017 12:01:51 +0000 (14:01 +0200)]
mesa: add texture_storage_error() helper

And make texture_storage always inline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBindSampler()
Samuel Pitoiset [Tue, 18 Jul 2017 16:53:18 +0000 (18:53 +0200)]
mesa: add KHR_no_error support to glBindSampler()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add bind_sampler() helper
Samuel Pitoiset [Tue, 18 Jul 2017 16:51:30 +0000 (18:51 +0200)]
mesa: add bind_sampler() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBindSamplers()
Samuel Pitoiset [Tue, 18 Jul 2017 10:49:22 +0000 (12:49 +0200)]
mesa: add KHR_no_error support to glBindSamplers()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add bind_samplers() helper
Samuel Pitoiset [Tue, 18 Jul 2017 10:47:47 +0000 (12:47 +0200)]
mesa: add bind_samplers() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glProgramParameteri()
Samuel Pitoiset [Tue, 18 Jul 2017 10:23:27 +0000 (12:23 +0200)]
mesa: add KHR_no_error support to glProgramParameteri()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add program_parameteri() helper
Samuel Pitoiset [Tue, 18 Jul 2017 10:20:12 +0000 (12:20 +0200)]
mesa: add program_parameteri() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glDeleteSync()
Samuel Pitoiset [Tue, 18 Jul 2017 09:27:00 +0000 (11:27 +0200)]
mesa: add KHR_no_error support to glDeleteSync()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add delete_sync() helper
Samuel Pitoiset [Tue, 18 Jul 2017 09:25:32 +0000 (11:25 +0200)]
mesa: add delete_sync() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glWaitSync()
Samuel Pitoiset [Tue, 18 Jul 2017 09:11:03 +0000 (11:11 +0200)]
mesa: add KHR_no_error support to glWaitSync()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add wait_sync() helper
Samuel Pitoiset [Tue, 18 Jul 2017 09:09:13 +0000 (11:09 +0200)]
mesa: add wait_sync() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glTextureView()
Samuel Pitoiset [Tue, 18 Jul 2017 08:56:19 +0000 (10:56 +0200)]
mesa: add KHR_no_error support to glTextureView()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add texture_view() helper
Samuel Pitoiset [Tue, 18 Jul 2017 08:53:14 +0000 (10:53 +0200)]
mesa: add texture_view() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glPatchParameteri()
Samuel Pitoiset [Mon, 17 Jul 2017 20:47:38 +0000 (22:47 +0200)]
mesa: add KHR_no_error support to glPatchParameteri()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glBlendEquationiARB()
Samuel Pitoiset [Mon, 17 Jul 2017 20:35:16 +0000 (22:35 +0200)]
mesa: add KHR_no_error support to glBlendEquationiARB()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add blend_equationi() helper
Samuel Pitoiset [Mon, 17 Jul 2017 20:31:24 +0000 (22:31 +0200)]
mesa: add blend_equationi() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glSampleMaski()
Samuel Pitoiset [Mon, 17 Jul 2017 19:59:39 +0000 (21:59 +0200)]
mesa: add KHR_no_error support to glSampleMaski()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add sample_maski() helper
Samuel Pitoiset [Mon, 17 Jul 2017 19:57:27 +0000 (21:57 +0200)]
mesa: add sample_maski() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add KHR_no_error support to glDepthRangeArrayv
Samuel Pitoiset [Mon, 17 Jul 2017 19:54:54 +0000 (21:54 +0200)]
mesa: add KHR_no_error support to glDepthRangeArrayv

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agomesa: add depth_range_arrayv() helper
Samuel Pitoiset [Mon, 17 Jul 2017 19:52:55 +0000 (21:52 +0200)]
mesa: add depth_range_arrayv() helper

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
7 years agodri_interface,egl,gallium: only expose RGBA visuals on Android
Marek Olšák [Fri, 28 Jul 2017 15:30:34 +0000 (17:30 +0200)]
dri_interface,egl,gallium: only expose RGBA visuals on Android

X/GLX can't handle them. This removes almost 500 GLX visuals that were
incorrectly exposed.

Add an optional getCapability callback for querying what the loader can do.

I'm not splitting this patch, because it's already too small.

v2: also add the callback to __DRIimageLoaderExtension

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: 17.2 <mesa-stable@lists.freedesktop.org>
7 years agoradeonsi: expose MRT-draw-calls to HUD
Marek Olšák [Fri, 28 Jul 2017 04:35:41 +0000 (06:35 +0200)]
radeonsi: expose MRT-draw-calls to HUD

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agomesa: clamp viewport values only once when using glViewport()
Samuel Pitoiset [Fri, 28 Jul 2017 13:47:22 +0000 (15:47 +0200)]
mesa: clamp viewport values only once when using glViewport()

It's useless to clamp the same values for all viewports.

+7% in the "viewport change" test (drawoverhead benchmark).

v2: - call clamp_viewport() in all callers of set_viewport_no_notify()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
7 years agomesa: make _mesa_check_init_viewport() static
Samuel Pitoiset [Fri, 28 Jul 2017 13:47:21 +0000 (15:47 +0200)]
mesa: make _mesa_check_init_viewport() static

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agogallium: Fix Thomas's email address
Kenneth Graunke [Fri, 28 Jul 2017 20:40:49 +0000 (13:40 -0700)]
gallium: Fix Thomas's email address

Commit 877128505431adaf817dc8069172ebe4a1cdf5d8 misspelled Hellstrom.

7 years agoi965: s/Tungsten Graphics/VMware/ in brw_bufmgr.c.
Kenneth Graunke [Fri, 28 Jul 2017 20:37:57 +0000 (13:37 -0700)]
i965: s/Tungsten Graphics/VMware/ in brw_bufmgr.c.

In commit 877128505431adaf817dc8069172ebe4a1cdf5d8, José replaced the
Tungsten Graphics copyright notices with VMware, as Tungsten is gone.

I later imported brw_bufmgr.c, reintroducing a Tungsten copyright.
This commit does the equivalent of José's change to the new file.

7 years agoi965: Reformat the copyright header in brw_bufmgr.c
Kenneth Graunke [Fri, 28 Jul 2017 20:26:42 +0000 (13:26 -0700)]
i965: Reformat the copyright header in brw_bufmgr.c

This reformats the copyright header to match what we use in most of the
newer parts of the driver.  There are a few minor alterations: we change
"COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS" to the standard
"AUTHORS OR COPYRIGHT HOLDERS", and move the permission notice to the
proper place (it should be in the middle, so "next paragraph" actually
refers to something).

Both of these changes match the OSI's MIT License text:
https://opensource.org/licenses/MIT

I copied this from genX_state_upload.c.

7 years agoradeonsi: update dirty_level_mask only when flushing or unbinding framebuffer
Marek Olšák [Tue, 4 Jul 2017 14:11:16 +0000 (16:11 +0200)]
radeonsi: update dirty_level_mask only when flushing or unbinding framebuffer

This fixes corruption with bindless textures in Dawn Of War 3.

The do_update_surf_dirtiness mechanism was complicated and dirty_level_mask
was only updated after the first draw call. The problem is bindless textures
are checked for decompression every draw call and we would only decompress
after the first draw call. The solution is to set dirtiness after the last
draw call to the framebuffer, so the (unconditional) decompression of
bindless textures happens at the right time.

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
7 years agoRevert "drirc: whitelist glthread for Mount and Blade Warband"
Marek Olšák [Fri, 28 Jul 2017 14:33:26 +0000 (16:33 +0200)]
Revert "drirc: whitelist glthread for Mount and Blade Warband"

This reverts commit a7617a49fbde2fcfccdab22886aeabdbf8abb8e4.

glthread disables itself automatically and therefore has no effect
on the game.

7 years agost/mesa: remove useless st_bufferobj_validate_usage()
Samuel Pitoiset [Thu, 27 Jul 2017 14:06:00 +0000 (16:06 +0200)]
st/mesa: remove useless st_bufferobj_validate_usage()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
7 years agost/mesa: remove st_cache.h
Samuel Pitoiset [Thu, 27 Jul 2017 14:05:59 +0000 (16:05 +0200)]
st/mesa: remove st_cache.h

It contains unused prototypes.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
7 years agost/glsl_to_tgsi: fix getting the image type for array of structs
Samuel Pitoiset [Thu, 27 Jul 2017 15:12:09 +0000 (17:12 +0200)]
st/glsl_to_tgsi: fix getting the image type for array of structs

Since array splitting for AoA is disabled, we have to retrieve
the type of the first non-array type when an array of images is
declared inside a structure. Otherwise, it will hit an assert
in glsl_type::sampler_index() because it expects either a sampler
or an image type.

This fixes a regression in the following piglit test:
arb_bindless_texture/compiler/images/arrays-of-struct.frag

Fixes: 57165f2ef8 ("glsl: disable array splitting for AoA")
Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agomesa: fix mismatch when returning 64-bit bindless uniform handles
Samuel Pitoiset [Tue, 25 Jul 2017 19:39:20 +0000 (21:39 +0200)]
mesa: fix mismatch when returning 64-bit bindless uniform handles

The slower convert-and-copy process performs a bad conversion
because it converts the value to signed 64-bit integer, but
bindless uniform handles are considered unsigned 64-bit.

This fixes "Check glUniform*() with mixed texture units/handles"
from arb_bindless_texture-uniform piglit.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agomesa: remove gl_sync_object::Type field
Samuel Pitoiset [Thu, 27 Jul 2017 14:05:41 +0000 (16:05 +0200)]
mesa: remove gl_sync_object::Type field

This is useless.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agomesa: drop fence type parameter from NewSyncObject()
Samuel Pitoiset [Thu, 27 Jul 2017 14:05:40 +0000 (16:05 +0200)]
mesa: drop fence type parameter from NewSyncObject()

This is useless.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agoradeonsi: rely on CLEAR_STATE for clearing UCP and blend color registers
Marek Olšák [Thu, 27 Jul 2017 00:45:00 +0000 (02:45 +0200)]
radeonsi: rely on CLEAR_STATE for clearing UCP and blend color registers

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agoradeonsi: rely on CLEAR_STATE for resetting the framebuffer and sample mask
Marek Olšák [Thu, 27 Jul 2017 00:41:30 +0000 (02:41 +0200)]
radeonsi: rely on CLEAR_STATE for resetting the framebuffer and sample mask

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agoradeonsi: use CLEAR_STATE to initialize some registers
Marek Olšák [Thu, 27 Jul 2017 00:40:34 +0000 (02:40 +0200)]
radeonsi: use CLEAR_STATE to initialize some registers

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agost/mesa: release sampler views when redefining a texture in st_context_teximage
Marek Olšák [Thu, 27 Jul 2017 23:52:13 +0000 (01:52 +0200)]
st/mesa: release sampler views when redefining a texture in st_context_teximage

Noticed randomly.

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
7 years agoradv: for stencil only set Z tile mode index to same value
Dave Airlie [Thu, 27 Jul 2017 03:51:48 +0000 (04:51 +0100)]
radv: for stencil only set Z tile mode index to same value

On SI this was causing a hang in
dEQP-VK.pipeline.render_to_image.core.2d_array.mipmap.r16g16_sint_s8_uint

This was due to not handling the tile mode index for depth like
I fixed previously for new GPUs.

Fixes: 01d0c5a9 (radv: fix stencil regression since new addrlib import)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years agovirgl: drop precise modifier.
Dave Airlie [Fri, 28 Jul 2017 01:04:35 +0000 (11:04 +1000)]
virgl: drop precise modifier.

The host doesn't understand this yet, so drop it for now.

Fixes: virgl regressions.
Fixes: af22adee4f (tgsi: add precise flag to tgsi_instruction)
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years agost/mesa: always unconditionally revalidate main framebuffer after SwapBuffers
Marek Olšák [Tue, 25 Jul 2017 15:34:52 +0000 (17:34 +0200)]
st/mesa: always unconditionally revalidate main framebuffer after SwapBuffers

This fixes the black Feral launcher window.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101867

Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
7 years agoradeonsi: bail out instead of crashing if the main shader part failed to compile
Nicolai Hähnle [Fri, 14 Jul 2017 13:10:58 +0000 (15:10 +0200)]
radeonsi: bail out instead of crashing if the main shader part failed to compile

Reviewed: Marek Olšák <marek.olsak@amd.com>

7 years agoradeonsi: update a comment for merged shaders
Nicolai Hähnle [Fri, 14 Jul 2017 12:33:49 +0000 (14:33 +0200)]
radeonsi: update a comment for merged shaders

Reviewed: Marek Olšák <marek.olsak@amd.com>

7 years agoradeonsi/gfx9: dump previous stage LLVM IR for merged shaders
Nicolai Hähnle [Fri, 14 Jul 2017 11:32:20 +0000 (13:32 +0200)]
radeonsi/gfx9: dump previous stage LLVM IR for merged shaders

Reviewed: Marek Olšák <marek.olsak@amd.com>

7 years agoradeonsi: make sure TCS main output VGPRs don't alias inputs
Nicolai Hähnle [Wed, 26 Jul 2017 11:53:45 +0000 (13:53 +0200)]
radeonsi: make sure TCS main output VGPRs don't alias inputs

Avoids an unnecessary move introduce by "radeonsi/gfx9: always wrap GS
and TCS in an if-block (v2)"

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agoradeonsi/gfx9: always wrap GS and TCS in an if-block (v2)
Nicolai Hähnle [Fri, 14 Jul 2017 12:33:37 +0000 (14:33 +0200)]
radeonsi/gfx9: always wrap GS and TCS in an if-block (v2)

With merged ESGS shaders, the GS part of a wave may be empty, and the
hardware gets confused if any GS messages are sent from that wave. Since
S_SENDMSG is executed even when EXEC = 0, we have to wrap even
non-monolithic GS shaders in an if-block, so that the entire shader and
hence the S_SENDMSG instructions are skipped in empty waves.

This change is not required for TCS/HS, but applying it there as well
simplifies the logic a bit.

Fixes GL45-CTS.geometry_shader.rendering.rendering.*

v2: ensure that the TCS epilog doesn't run for non-existing patches

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
7 years agoradeonsi/gfx9: fix vertex idx in ES with multiple waves per threadgroup
Nicolai Hähnle [Fri, 14 Jul 2017 11:31:49 +0000 (13:31 +0200)]
radeonsi/gfx9: fix vertex idx in ES with multiple waves per threadgroup

Cc: mesa-stable@lists.freedesktop.org
Reviewed: Marek Olšák <marek.olsak@amd.com>

7 years agoswr: fix transform feedback logic
George Kyriazis [Sat, 22 Jul 2017 04:23:04 +0000 (23:23 -0500)]
swr: fix transform feedback logic

The shader that is used to copy vertex data out of the vs/gs shaders to
the user-specified buffer (streamout or SO shader) was not using the
correct offsets.

Adjust the offsets that are used just for the SO shader:
- Make sure that position is handled in the same special way
  as in the vs/gs shaders
- Use the correct offset to be passed in the core
- consolidate register slot mapping logic into one function, since it's
  been calculated in 2 different places (one for calcuating the slot mask,
  and one for the register offsets themselves

Also make room for all attibutes in the backend vertex area.

Fixes:
- all vtk GL2PS tests
- 18 piglit tests (16 ext_transform_feedback tests,
  arb-quads-follow-provoking-vertex and primitive-type gl_points

v2:

- take care of more SGV slots in slot mapping logic
- trim feState.vsVertexSize
- fix GS interface and incorporate GS while calculating vsVertexSize

Note that vsVertexSize is used in the core as the one parameter that
controls vertex size between all stages, so it has to be adjusted appropriately
for the whole vs/gs/fs pipeline.

Also note that GS and SO is not fully implemented.  This will be addressed
later.

fixes:
- fixes total of 20 piglit tests

CC: 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
7 years agoswr/rast: non-regex knob fallback code for gcc < 4.9
Tim Rowley [Wed, 26 Jul 2017 20:17:49 +0000 (15:17 -0500)]
swr/rast: non-regex knob fallback code for gcc < 4.9

gcc prior to 4.9 didn't implement <regex>, causing a startup crash
in the swr knob parameter reading code.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
7 years agomesa: check that buffer object is not NULL before initializing it
Timothy Arceri [Wed, 26 Jul 2017 22:53:08 +0000 (08:53 +1000)]
mesa: check that buffer object is not NULL before initializing it

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
7 years agoglsl: small builtin inline tidy up
Timothy Arceri [Thu, 27 Jul 2017 06:49:55 +0000 (16:49 +1000)]
glsl: small builtin inline tidy up

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
7 years agovirgl: encode index buffer offset.
Dave Airlie [Tue, 25 Jul 2017 06:09:40 +0000 (16:09 +1000)]
virgl: encode index buffer offset.

Fixes arb_vertex_buffer_object-combined-vertex-index

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years agost/mesa: Fix inversed test in st_api_destroy_drawable
Michel Dänzer [Thu, 27 Jul 2017 02:12:24 +0000 (11:12 +0900)]
st/mesa: Fix inversed test in st_api_destroy_drawable

Fixes a drawable leak.

Fixes: bbc29393d3be ("st/mesa: create framebuffer iface hash table per
                      st manager")
Bugzilla: https://bugs.freedesktop.org/101930
Tested-by: Nick Sarnie <commendsarnex@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
7 years agoradv/ac: port SI TC L1 write corruption fix.
Dave Airlie [Wed, 26 Jul 2017 01:34:54 +0000 (02:34 +0100)]
radv/ac: port SI TC L1 write corruption fix.

This ports 72e46c988 to radv.
    radeonsi: apply a TC L1 write corruption workaround for SI

Fixes: f4e499ec7 (radv: add initial non-conformant radv vulkan driver)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>