mesa.git
6 years agoradeonsi: bypass the shader cache for NIR shaders
Nicolai Hähnle [Fri, 19 May 2017 15:28:54 +0000 (17:28 +0200)]
radeonsi: bypass the shader cache for NIR shaders

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoradeonsi: scan NIR shaders to obtain required info
Nicolai Hähnle [Wed, 17 May 2017 15:46:15 +0000 (17:46 +0200)]
radeonsi: scan NIR shaders to obtain required info

v2: set num_instruction to 2, i.e. 1 + END (Marek)

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoac/nir: add ac_shader_abi::inputs
Nicolai Hähnle [Thu, 8 Jun 2017 16:23:34 +0000 (18:23 +0200)]
ac/nir: add ac_shader_abi::inputs

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoac/nir: begin splitting off ac_nir_context
Nicolai Hähnle [Fri, 19 May 2017 15:03:20 +0000 (17:03 +0200)]
ac/nir: begin splitting off ac_nir_context

The eventual goal is to hide all radv-specific details behind
ac_nir_context::abi, so that the NIR->LLVM code can be re-used by
radeonsi.

During development, we live with a partial split, where some of the
NIR->LLVM code still relies on linking back to the nir_to_llvm_context
(which should ultimately be renamed to reflect that it's radv-specific).
The idea is to get rid of these backlinks over time.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoradeonsi: add si_shader_selector::nir
Nicolai Hähnle [Tue, 16 May 2017 00:06:15 +0000 (02:06 +0200)]
radeonsi: add si_shader_selector::nir

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoradeonsi: implement pipe_screen::get_compiler_options for NIR
Nicolai Hähnle [Tue, 16 May 2017 00:04:48 +0000 (02:04 +0200)]
radeonsi: implement pipe_screen::get_compiler_options for NIR

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoradeonsi: add nir include paths
Nicolai Hähnle [Tue, 16 May 2017 00:06:35 +0000 (02:06 +0200)]
radeonsi: add nir include paths

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoac/nir: start using ac_shader_abi
Nicolai Hähnle [Mon, 15 May 2017 22:28:50 +0000 (00:28 +0200)]
ac/nir: start using ac_shader_abi

v2: update for LLVMValueRefs in ac_shader_abi

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoac,radeonsi: move some VS input descriptions to ac_shader_abi
Nicolai Hähnle [Mon, 15 May 2017 22:19:01 +0000 (00:19 +0200)]
ac,radeonsi: move some VS input descriptions to ac_shader_abi

v2: use LLVM values instead of function parameter indices

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agoradeonsi: store shader function arguments in a structure
Nicolai Hähnle [Mon, 3 Jul 2017 14:54:37 +0000 (16:54 +0200)]
radeonsi: store shader function arguments in a structure

Aligns the code a bit more with ac/nir, and simplifies the setup of
ac_shader_abi.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agogallium/targets: link against NIR when building radeonsi
Nicolai Hähnle [Tue, 16 May 2017 00:04:14 +0000 (02:04 +0200)]
gallium/targets: link against NIR when building radeonsi

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agost/glsl_to_nir: move nir_lower_io to drivers
Nicolai Hähnle [Tue, 4 Jul 2017 08:23:49 +0000 (10:23 +0200)]
st/glsl_to_nir: move nir_lower_io to drivers

This allows drivers more freedom in how exactly they want to lower I/O,
e.g. first lowering I/O to temporaries.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agost/mesa: get rid of st_glsl_types
Nicolai Hähnle [Tue, 4 Jul 2017 08:22:02 +0000 (10:22 +0200)]
st/mesa: get rid of st_glsl_types

It's a duplicate of glsl_type::count_attribute_slots.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agost/glsl_to_nir: use nir_lower_samplers_as_deref when requested by the driver
Nicolai Hähnle [Fri, 19 May 2017 20:42:12 +0000 (22:42 +0200)]
st/glsl_to_nir: use nir_lower_samplers_as_deref when requested by the driver

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agost/glsl_to_nir: fix the case where NIR clone testing is enabled
Nicolai Hähnle [Sun, 25 Jun 2017 13:26:47 +0000 (15:26 +0200)]
st/glsl_to_nir: fix the case where NIR clone testing is enabled

In that case, prog->nir must be assigned at the end.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agogallium: add PIPE_CAP_NIR_SAMPLERS_AS_DEREF
Nicolai Hähnle [Sun, 25 Jun 2017 16:31:11 +0000 (18:31 +0200)]
gallium: add PIPE_CAP_NIR_SAMPLERS_AS_DEREF

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
6 years agonir: add nir_lower_uniforms_to_ubo pass
Nicolai Hähnle [Sat, 20 May 2017 15:58:25 +0000 (17:58 +0200)]
nir: add nir_lower_uniforms_to_ubo pass

This is a further lowering of default-block uniform loads that transforms
load_uniform intrinsics into load_ubo intrinsics. This simplifies the rest
of the backend.

v2: transform from load_uniform instead of straight from variables

Reviewed-by: Eric Anholt <eric@anholt.net>
6 years agonir: add nir_lower_samplers_as_deref pass
Nicolai Hähnle [Fri, 9 Jun 2017 09:35:25 +0000 (11:35 +0200)]
nir: add nir_lower_samplers_as_deref pass

This pass is a replacement for the nir_lower_samplers pass, which has the
advantage of keeping sampler references as derefs. This allows a unified
treatment of texture instructions and image intrinsics in the backend.

6 years agonir: add load_frag_coord system value intrinsic
Nicolai Hähnle [Tue, 4 Jul 2017 08:34:02 +0000 (10:34 +0200)]
nir: add load_frag_coord system value intrinsic

Some drivers prefer to treat gl_FragCoord as a system value rather than
a fragment shader input, see Const.GLSLFragCoordIsSysVal.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
6 years agonir: fix nir_lower_wpos_ytransform when gl_FragCoord is a system value
Nicolai Hähnle [Sun, 25 Jun 2017 13:26:01 +0000 (15:26 +0200)]
nir: fix nir_lower_wpos_ytransform when gl_FragCoord is a system value

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
6 years agonir: add nir_instr_rewrite_deref
Nicolai Hähnle [Fri, 9 Jun 2017 13:13:08 +0000 (15:13 +0200)]
nir: add nir_instr_rewrite_deref

Allows modifying a texture instruction's texture and sampler derefs.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
6 years agomesa: add KHR_no_error support to glPointSize()
Samuel Pitoiset [Thu, 20 Jul 2017 08:19:23 +0000 (10:19 +0200)]
mesa: add KHR_no_error support to glPointSize()

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

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

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

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
6 years agomesa: add KHR_no_error support to glTextureSubImage*D()
Samuel Pitoiset [Wed, 19 Jul 2017 13:36:01 +0000 (15:36 +0200)]
mesa: add KHR_no_error support to glTextureSubImage*D()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
6 years agomesa: add texturesubimage_error() helper
Samuel Pitoiset [Wed, 19 Jul 2017 13:27:54 +0000 (15:27 +0200)]
mesa: add texturesubimage_error() helper

And make texturesubimage() always inline.

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

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
6 years agomesa: add detach_shader_error() helper
Samuel Pitoiset [Wed, 19 Jul 2017 12:37:21 +0000 (14:37 +0200)]
mesa: add detach_shader_error() helper

And make detach_shader() always inline.

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

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

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

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

And make draw_buffers() always inline.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>