[Mesa-dev] [PATCH v5] mesa: enable enums for OES_geometry_shader

2016-01-26 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. V4: EXTRA tokens updated according to comments from Ilia Mirkin. V5: Account for check_extra does not evaluate "or" lazy. Fix issues with EXTRA_EXT_FB_NO_ATTACH_CS. Sign

[Mesa-dev] [PATCH 4/4] mesa: Update _mesa_has_geometry_shaders

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. Reviewed-by: Matt Turner <matts...@gmail.com> --- src/mesa/main/context.h | 3 ++- 1 file changed, 2 inse

[Mesa-dev] [PATCH 0/4] Resend of initial OES_geometry_shader patches

2016-01-21 Thread Marta Lofstedt
These patches have been previously reviewed, but after updating according to review comments, I want to give people some time to provide more feedback. I will push in 24 hours unless I hear otherwise. Marta Lofstedt (4): glapi: add GL_OES_geometry_shader extension mesa: enable enums

[Mesa-dev] [PATCH 1/4] glapi: add GL_OES_geometry_shader extension

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Add xml definitions for the GL_OES_geometry_shader extension and expose the extension for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> Reviewed-by: Ilia Mirkin <imir...@alum.mit.edu> ---

[Mesa-dev] [PATCH 3/4] glsl: add support for GL_OES_geometry_shader

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> --- src/glsl/builtin_v

[Mesa-dev] [PATCH 2/4] mesa: enable enums for OES_geometry_shader

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. V4: EXTRA tokens updated according to comments from Ilia Mirkin. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> Reviewed-by: Tapani Pälli <tapani.pa...@intel.com

[Mesa-dev] [PATCH V3] glapi: add GL_OES_geometry_shader extension

2016-01-12 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Add xml definitions for the GL_OES_geometry_shader extension and expose the extension for OpenGL ES 3.1. V3: Added dependency to OES_shader_io_blocks and updated to correct Khronos extension number. Signed-off-by: Marta Lofstedt <ma

[Mesa-dev] [PATCH] mesa: Move sanity check of BindVertexBuffer for OpenGL ES 3.1

2016-01-08 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Sanity check of BindVertexBuffer for OpenGL ES in _mesa_handle_bind_buffer_gen breaks OpenGL ES 2 conformance. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93426 Signed-off-by: Marta Lofstedt <marta.lofst...@intel.com> --- s

[Mesa-dev] [PATCH] i965/gen8: Always use BRW_REGISTER_TYPE_UW for MUL on GEN8+

2015-12-29 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> The imulExtended test of the shader bitfield tests of the OpenGL ES 3.1 CTS, fail on gen8+, when BRW_REGISTER_TYPE_W is used for SHADER_OPECODE_MULH. See: https://bugs.freedesktop.org/show_bug.cgi?id=92595 Signed-off-by: Marta Lo

[Mesa-dev] [PATCH v4] mesa: enable enums for OES_geometry_shader

2015-12-10 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/get.c | 70 ++-- src/mesa/main/get_hash_pa

[Mesa-dev] [PATCH v4] mesa: Update _mesa_has_geometry_shaders

2015-12-10 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. --- src/mesa/main/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/con

[Mesa-dev] [PATCH v3] mesa: enable enums for OES_geometry_shader

2015-12-01 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/get.c | 64 ++-- src/mesa/main/get_hash_pa

[Mesa-dev] [PATCH v3] mesa: Update _mesa_has_geometry_shaders

2015-12-01 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. --- src/mesa/main/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/con

[Mesa-dev] [PATCH v3] glsl: add support for GL_OES_geometry_shader

2015-12-01 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/glsl/builtin_variables.cpp | 25 + src/glsl/glsl_parser.yy |

[Mesa-dev] [PATCH v2 0/6] Enable GL_OES_geometry_shader for OpenGL ES 3.1

2015-11-27 Thread Marta Lofstedt
if the full ARB_viewport_array should be exposed under GLES 3.1. I also renamed the GS4 EXTRA_EXT stuff to only GS. I should have done that when I removed the ARB_geometry_shader4 the rest of the changes are simple rebases. Marta Lofstedt (6): gles2: Update gl2ext.h to revision: 32120 glapi: add

[Mesa-dev] [PATCH v2 5/6] mesa: Update _mesa_has_geometry_shaders

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. --- src/mesa/main/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/con

[Mesa-dev] [PATCH v2 1/6] gles2: Update gl2ext.h to revision: 32120

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This is needed to be able to implement the accepted OES extensions. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- include/GLES2/gl2ext.h | 940 - 1 file changed, 93

[Mesa-dev] [PATCH v2 2/6] glapi: add GL_OES_geometry_shader extension

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Add xml definitions for the GL_OES_geometry_shader extension and expose the extension for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mapi/glapi/gen/apiexec.py | 2 +- src/ma

[Mesa-dev] [PATCH v2 4/6] mesa: enable enums for OES_geometry_shader

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/get.c | 58 +--- src/mesa/main/get_hash_pa

[Mesa-dev] [PATCH v2 6/6] doc: Set GL_OES_geometry_shader as started

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> Reviewed-by: Eduardo Lima Mitev <el...@igalia.com> --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3

[Mesa-dev] [PATCH v2 3/6] glsl: add support for GL_OES_geometry_shader

2015-11-27 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/glsl/builtin_variables.cpp | 17 + src/glsl/glsl_parser.yy | 4 ++

[Mesa-dev] [PATCH v2] mesa: remove ARB_geometry_shader4

2015-11-25 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> No drivers currently implement ARB_geometry_shader4, nor are there any plans to implement it. We only support the version of geometry shaders that was incorporated into OpenGL 3.2 / GLSL 1.50. Signed-off-by: Marta Lofstedt <ma

[Mesa-dev] [PATCH] mesa: remove ARB_geometry_shader4

2015-11-24 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Since all drivers support OpenGL 3.2 geometry shaders, there is no reason to keep the ARB_geometry_shader4. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mapi/glapi/gen/ARB_geometry_shad

[Mesa-dev] [PATCH] glsl: Relax requirement on Centroid matching between shader stages

2015-11-04 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> In OpenGL 4.4, section 4.5, the requirement for interpolation qualifiers to match over shader stages was removed. In OpenGL ES 3.1, section 9.2.1 there is a table showing that centroid does not have to match between shader stages. Also s

[Mesa-dev] [PATCH] mesa: DispatchComputeIndirect should return INVALID_VALUE on unaligned

2015-10-29 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> From the ARB_compute_shader specification: "An INVALID_OPERATION error is generated [...] if is less than zero or not a multiple of the size, in basic machine units, of uint." However, OpenGL ES 3.1 specification, section 1

[Mesa-dev] [PATCH v2] mesa: Draw indirect is not allowed if the default VAO is bound.

2015-10-26 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> From OpenGL ES 3.1 specification, section 10.5: "DrawArraysIndirect requires that all data sourced for the command, including the DrawArraysIndirectCommand structure, be in buffer objects, and may not be called when the default vertex a

[Mesa-dev] [PATCH v2] mesa: Draw Indirect return wrong error code on unalinged

2015-10-26 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> From OpenGL 4.4 specification, section 10.4 and Open GL Es 3.1 section 10.5: "An INVALID_VALUE error is generated if indirect is not a multiple of the size, in basic machine units, of uint." However, the current code follow the A

[Mesa-dev] [PATCH v2] mesa: Draw indirect is not allowed when xfb is active and unpaused

2015-10-26 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> OpenGL ES 3.1 specification, section 10.5: "An INVALID_OPERATION error is generated if transform feedback is active and not paused." Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/api_validat

[Mesa-dev] [PATCH 0/4] Updates to Draw Indirect for OpenGL ES 3.1

2015-10-20 Thread Marta Lofstedt
This patchset fixes 7 API related tests of the OpenGL ES 3.1 CTS. I would consider squashing these into one patch, but to avoid confusion when we discuss my solution I preferr to keep the discussions separated for each patch for now. Marta Lofstedt (4): mesa: Draw indirect is not allowed

[Mesa-dev] [PATCH 1/4] mesa: Draw indirect is not allowed if the default VAO is bound.

2015-10-20 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> From OpenGL ES 3.1 specification, section 10.5: "DrawArraysIndirect requires that all data sourced for the command, including the DrawArraysIndirectCommand structure, be in buffer objects, and may not be called when the default vertex a

[Mesa-dev] [PATCH 2/4] mesa: Draw Indirect is not allowed when no vertex array binding exists.

2015-10-20 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> OpenGL ES 3.1 spec. section 10.5: "An INVALID_OPERATION error is generated if zero is bound to VERTEX_ARRAY_BINDING, DRAW_INDIRECT_BUFFER or to any enabled vertex array." Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel

[Mesa-dev] [PATCH 3/4] mesa: Draw Indirect return wrong error code on unalinged

2015-10-20 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> From OpenGL 4.4 specification, section 10.4 and Open GL Es 3.1 section 10.5: "An INVALID_VALUE error is generated if indirect is not a multiple of the size, in basic machine units, of uint." However, the current code follow the A

[Mesa-dev] [PATCH 4/4] mesa: Draw indirect is not allowed when xfb is active and unpaused

2015-10-20 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> OpenGL ES 3.1 specification, section 10.5: "An INVALID_OPERATION error is generated if transform feedback is active and not paused." Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/api_valid

[Mesa-dev] [PATCH v2] glsl: Enable split of lower UBOs and SSBO also for compute shaders

2015-10-14 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> The split of Uniform blocks and shader storage block only loops up to MESA_SHADER_FRAGMENT and igonres compute shaders. This cause segfault when running the OpenGL ES 3.1 CTS tests with GL_ARB_compute_shader enabled. V2: Changed

[Mesa-dev] [PATCH] glsl: Enable split of lower UBOs and SSBO also for compute shaders

2015-10-14 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> The split of Uniform blocks and shader storage block only loops up to MESA_SHADER_FRAGMENT and igonres compute shaders. This cause segfault when running the OpenGL ES 3.1 CTS tests with GL_ARB_compute_shader enabled. Signed-off-by: Marta Lo

[Mesa-dev] [PATCH 3/7] mesa: Add extension enable for GL_OES_geometry_shader

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Exposes the GL_OES_geometry_shader extension for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + src/mes

[Mesa-dev] [PATCH 1/7] gles2: Update gl2ext.h to revision: 31902

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This is needed to be able to implement the accepted OES extensions. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- include/GLES2/gl2ext.h | 921 - 1 file changed, 91

[Mesa-dev] [PATCH 7/7] doc: Set GL_OES_geometry_shader as started

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 92941cf..e1c6049 100644 --- a/docs/GL3.txt +++ b/

[Mesa-dev] [PATCH 4/7] glsl: add support for GL_OES_geometry_shader

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/glsl/builtin_variables.cpp | 16 +--- src/glsl/glsl_parser.yy | 4 ++

[Mesa-dev] [PATCH 2/7] glapi: add GL_OES_geometry_shader extension

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Adds xml definitions for the GL_OES_geometry_shader extension and exposes the glFrameBufferTexture function as an alias of glFramebufferTextureOES. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mapi/glapi/ge

[Mesa-dev] [PATCH 6/7] mesa: Update _mesa_has_geometry_shaders

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Updates the _mesa_has_geometry_shaders function to also look for OpenGL ES 3.1 contexts that has OES_geometry_shader enabled. --- src/mesa/main/context.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mes

[Mesa-dev] [PATCH 5/7] mesa: enable enums for OES_geometry_shader

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt <marta.lofst...@linux.intel.com> --- src/mesa/main/get.c | 18 +++ src/mesa/main/get_hash_pa

[Mesa-dev] [PATCH 0/7] Enable GL_OES_geometry_shader for OpenGL ES 3.1

2015-09-23 Thread Marta Lofstedt
GL_OES_geometry_shader as started Just added my name to this. Marta Lofstedt (7): gles2: Update gl2ext.h to revision: 31902 glapi: add GL_OES_geometry_shader extension mesa: Add extension enable for GL_OES_geometry_shader glsl: add support for GL_OES_geometry_shader mesa: enable enums

[Mesa-dev] [PATCH v2] mesa: Allow query of GL_VERTEX_BINDING_BUFFER

2015-08-31 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> According to OpenGL ES 3.1 specification table : 20.2 and OpenGL specification 4.4 table 23.4. The glGetIntegeri_v functions should report the name of the buffer bound when called with GL_VERTEX_BINDING_BUFFER. Signed-off-by: Marta Lo

[Mesa-dev] [PATCH v3] mesa: Allow query of GL_VERTEX_BINDING_BUFFER

2015-08-31 Thread Marta Lofstedt
From: Marta Lofstedt <marta.lofst...@intel.com> According to OpenGL ES 3.1 specification table : 20.2 and OpenGL specification 4.4 table 23.4. The glGetIntegeri_v functions should report the name of the buffer bound when called with GL_VERTEX_BINDING_BUFFER. Signed-off-by: Marta Lo

[Mesa-dev] [PATCH] i965/fs: Do not set the size for zero-size uniforms

2015-08-28 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Zero sized uniforms can exist in the list, but they don't get get any space allocated in prog_data-params or in the param_size array, so the size should not be set for them. This was previously fixed in: commit

[Mesa-dev] [PATCH v2] mesa/es3.1: Expose GL_ARB_framebuffer_no_attachments to GLES 3.1

2015-08-27 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com V2: Conform to new standard for exposing enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4

[Mesa-dev] [PATCH v2 2/2] mesa/es3.1: Limit Framebuffer Parameter OpenGL ES 3.1 usage

2015-08-24 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL ES 3.1 specification, section 9.2.1 for glFramebufferParameter and section 9.2.3 for glGetFramebufferParameteriv: An INVALID_ENUM error is generated if pname is not FRAMEBUFFER_DEFAULT_WIDTH, FRAMEBUFFER_DEFAULT_HEIGHT

[Mesa-dev] [PATCH v2 1/2] mesa/es3.1: Expose GL_ARB_framebuffer_no_attachments to GLES 3.1

2015-08-24 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4 ++-- src/mesa/main/get.c | 6

[Mesa-dev] [PATCH 1/2] mesa/es3.1: Expose GL_ARB_framebuffer_no_attachments to GLES 3.1

2015-08-24 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4 ++-- src/mesa/main/get.c | 6

[Mesa-dev] [PATCH 2/2] mesa/es3.1: Limit Framebuffer Parameter OpenGL ES 3.1 usage

2015-08-24 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL ES 3.1 specification, section 9.2.1 for glFramebufferParameter and section 9.2.3 for glGetFramebufferParameteriv: An INVALID_ENUM error is generated if pname is not FRAMEBUFFER_DEFAULT_WIDTH, FRAMEBUFFER_DEFAULT_HEIGHT

[Mesa-dev] [PATCH] mesa/es3.1: Allow GL_COMPUTE_WORK_GROUP_SIZE for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL ES specification section 7.12, GL_COMPUTE_WORK_GROUP_SIZE, is supported by the glGetProgramiv function. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/shaderapi.c | 2 +- 1 file changed, 1 insertion

[Mesa-dev] [PATCH] mesa/es3.1: Enable getting MAX_COMPUTE_WORK_GROUP_ values for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to the OpenGL ES 3.1 specification chapter 17, the MAX_COMPUTE_WORK_GROUP_COUNT and MAX_COMPUTE_WORK_GROUP_SIZE is available for glGetIntegeri_v. Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/get.c | 4

[Mesa-dev] [PATCH] mesa: Allow query of GL_VERTEX_BINDING_BUFFER

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL ES 3.1 specification table : 20.2 and OpenGL specification 4.4 table 23.4. The glGetIntegeri_v functions should report the name of the buffer bound when called with GL_VERTEX_BINDING_BUFFER. Signed-off-by: Marta Lofstedt

[Mesa-dev] [PATCH 1/3] mesa/es3.1 : Align OpenGL ES 3.1 glBindVertexBuffer error handling with OpenGL Core

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL ES 3.1 specification 10.3.1: An INVALID_OPERATION error is generated if buffer is not zero or a name returned from a previous call to GenBuffers, or if such a name has since been deleted with DeleteBuffers. This error check

[Mesa-dev] [PATCH 0/3] Enable misc. Vertex bindings for OpenGL ES 3.1

2015-08-19 Thread Marta Lofstedt
These patches enable some Vertex Binding functionality for OpenGL ES 3.1, that is currently limited to desktop GL. Marta Lofstedt (3): mesa/es3.1 : Align OpenGL ES 3.1 glBindVertexBuffer error handling with OpenGL Core mesa/es3.1: Allow query of Vertex bindings for GLES 3.1 mesa/es3.1

[Mesa-dev] [PATCH 2/3] mesa/es3.1: Allow query of Vertex bindings for GLES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index ae2d0b7..b6b7d6c 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 3/3] mesa/es3.1: Enable GL_ARB_vertex_attrib_binding functionality for GLES 3.1

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/varray.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 3bab985..3ddf795 100644

[Mesa-dev] [PATCH v3] mesa: Implement glMemoryBarrierByRegion

2015-08-14 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com The function glMemoryBarrierByRegion is part of OpenGL ES 3.1 and OpenGL 4.5 core and compatibility profiles. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/GL4x.xml | 6 + src/mesa/main/shaderimage.c

[Mesa-dev] [PATCH v2] mesa: AtomicBufferBindings should be initialized to zero.

2015-08-13 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL specification version 4.5 table 23.46 and OpenGL ES specification version 3.1 table 20.31: ATOMIC_COUNTER_BUFFER_START and ATOMIC_COUNTER_BUFFER_SIZE should have the initial value of zero. Signed-off-by: Marta Lofstedt marta.lofst

[Mesa-dev] [PATCH v2] mesa: Raise INVALID_VALUE from glCreateShaderProgramv if count 0

2015-08-13 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to OpenGL version 4.5 and OpenGL ES 3.1 standards, section 7.3: GL_INVALID_VALUE should be generated, if count is less than 0. V2: Changed title, eased Open GL ES 3.1 restriction and added comments. --- src/mesa/main/shaderapi.c | 9

[Mesa-dev] [PATCH] mesa/main: Add GL_IMAGE_FORMAT_COMPATIBILITY_TYPE to glGetTexParameterfv

2015-08-12 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to Open GL ES 3.1 specification, section 8.10.2. GL_IMAGE_FORMAT_COMPATIBILITY_TYPE should be supported by glGetTexParameterfv. Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/texparam.c | 6 ++ 1 file

[Mesa-dev] [PATCH v2] glsl/es3.1: Fix up GL_ARB_compute_shader for GLSL ES 3.1

2015-08-10 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com GL_ARB_compute_shader is limited for GLSL version 430. This enables for GLSL ES version 310. V2: Updated error string to also include GLSL 3.10 Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/glsl/glsl_parser.yy | 5

[Mesa-dev] [PATCH] mesa/es3.1: Enable GL_MAX_VERTEX_ATTRIB enums for GLES 3.1

2015-08-10 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/get_hash_params.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py

Re: [Mesa-dev] [PATCH 0/4] Implementation of glMemoryBarrierByRegion

2015-08-04 Thread marta . lofstedt
This provides an i965 implementation of the OpenGL ES 3.1 needed function, glMemoryBarrierByRegion. Marta Lofstedt (4): gles/es3.1: Enable dispatch of glMemoryBarrierByRegion mesa/es3.1: Add driver interface for glMemoryBarrierByRegion mesa/es3.1: Implement the entry point

[Mesa-dev] [PATCH v2] gles/es3.1: Implement glMemoryBarrierByRegion

2015-08-04 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/gl_API.xml | 4 src/mesa/main/shaderimage.c | 40 + src/mesa/main/shaderimage.h | 3 +++ src/mesa

[Mesa-dev] [PATCH 3/4] mesa/es3.1: Implement the entry point of MemoryBarrierByRegion

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/shaderimage.c | 9 + src/mesa/main/shaderimage.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c index

[Mesa-dev] [PATCH 4/4] i965/es3.1: Implement glMemoryBarrierByRegion

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/drivers/dri/i965/brw_program.c | 34 + 1 file changed, 34 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri

[Mesa-dev] [PATCH 0/4] Implementation of glMemoryBarrierByRegion

2015-07-31 Thread Marta Lofstedt
This provides an i965 implementation of the OpenGL ES 3.1 needed function, glMemoryBarrierByRegion. Marta Lofstedt (4): gles/es3.1: Enable dispatch of glMemoryBarrierByRegion mesa/es3.1: Add driver interface for glMemoryBarrierByRegion mesa/es3.1: Implement the entry point

[Mesa-dev] [PATCH 2/4] mesa/es3.1: Add driver interface for glMemoryBarrierByRegion

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/dd.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 87eb63e..4b41141 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa

[Mesa-dev] [PATCH 1/4] gles/es3.1: Enable dispatch of glMemoryBarrierByRegion

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mapi/glapi/gen/gl_API.xml | 4 src/mesa/main/tests/dispatch_sanity.cpp | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mapi/glapi/gen/gl_API.xml

[Mesa-dev] [PATCH v6 4/4] mesa/es3.1: enable GL_ARB_texture_gather for GLES 3.1

2015-07-27 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 6 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa/main

[Mesa-dev] [PATCH v6 3/4] mesa/es3.1: enable GL_ARB_texture_multisample for GLES 3.1

2015-07-27 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 14 -- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/get.c b/src

[Mesa-dev] [PATCH v6 1/4] mesa/es3.1: enable GL_ARB_shader_image_load_store for GLES 3.1

2015-07-27 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 17 +++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/get.c b

[Mesa-dev] [PATCH V5 6/7] mesa/es3.1: enable GL_ARB_compute_shader for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/mesa/main/get.c

[Mesa-dev] [PATCH V5 4/7] mesa/es3.1: enable GL_ARB_texture_multisample for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 18 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/get.c b

[Mesa-dev] [PATCH V5 2/7] mesa/es3.1: enable GL_ARB_shader_image_load_store for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 17 +++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/get.c b

[Mesa-dev] [PATCH V5 3/7] mesa/es3.1: enable GL_ARB_shader_atomic_counters for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 +++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/get.c b

[Mesa-dev] [PATCH V5 1/7] mesa/es3.1: Add ES 3.1 handling to get.c and get_hash_generator.py

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/get.c | 5 - src/mesa/main/get_hash_generator.py | 12 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/mesa/main

[Mesa-dev] [PATCH V5 0/7] Enabling extension enums for OpenGL ES 3.1

2015-07-23 Thread Marta Lofstedt
This is V5 of my patch-set for enabling extension enums for OpenGL ES 3.1. This update address comments from Ilia Mirkin and adds a new GLES31 label. I have my current GLES 3.1 work on github: https://github.com/MartaLo/mesa For theese patches see the gles31_resent_patches, branch Marta

[Mesa-dev] [PATCH V5 5/7] mesa/es3.1: enable GL_ARB_texture_gather for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 10 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/get.c b/src/mesa

[Mesa-dev] [PATCH V5 7/7] mesa/es3.1: enable GL_ARB_explicit_uniform_location for GLES 3.1

2015-07-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c

[Mesa-dev] [PATCH v3] mesa: Do not give ralloc_strcat a NULL

2015-06-26 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com When a program is compiled, but linking failed the sh-InfoLog could be NULL. This is exploited by OpenGL ES 3.1 conformance tests. V3: Chnaged title. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/shaderapi.c | 3 ++- 1

[Mesa-dev] [PATCH v2] mesa : NULL check InfoLog

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com When a program is compiled, but linking failed the sh-InfoLog could be NULL. This is expoloited by OpenGL ES 3.1 conformance tests. V2: ralloc_strdup shProg-InfoLog Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main

[Mesa-dev] [PATCH v4 5/6] mesa/es3.1: enable GL_ARB_compute_shader for GLES 3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4 : only expose GL_ARB_compute_shader enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 ++-- 2 files

[Mesa-dev] [PATCH v4 2/6] mesa/es3.1: enable GL_ARB_shader_atomic_counters for GLES 3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4 : only expose ARB_shader_atomic_counters enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 +++- 2

[Mesa-dev] [PATCH v4 3/6] mesa/es3.1: enable GL_ARB_texture_multisample for GLES 3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4 : only expose GL_ARB_texture_multisample enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 18 +- 2 files

[Mesa-dev] [PATCH v4 1/6] mesa/es3.1: enable GL_ARB_shader_image_load_store for gles3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4: only expose enums from GL_ARB_shader_image_load_store for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 14 -- 2

[Mesa-dev] [PATCH v4 0/6] Continue enabling Open GL ES 3.1

2015-06-25 Thread Marta Lofstedt
This are for the V4s. Marta Lofstedt (6): mesa/es3.1: enable GL_ARB_shader_image_load_store for gles3.1 mesa/es3.1: enable GL_ARB_shader_atomic_counters for GLES 3.1 mesa/es3.1: enable GL_ARB_texture_multisample for GLES 3.1 mesa/es3.1: enable GL_ARB_texture_gather for GLES 3.1 mesa

[Mesa-dev] [PATCH v4 6/6] mesa/es3.1: enable GL_ARB_explicit_uniform_location for GLES 3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4 : only expose GL_ARB_explicit_uniform_location enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 4 +++- 2 files changed

[Mesa-dev] [PATCH v4 4/6] mesa/es3.1: enable GL_ARB_texture_gather for GLES 3.1

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com v4 : only expose GL_ARB_texture_gather enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 10 +- 2 files changed, 11

[Mesa-dev] [PATCH 6/6] mesa/es3.1: Fix error code for glCreateShaderProgram

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to the OpenGL ES standard, 7.3. For a call to glCreateShaderProgram with count 0, a GL_INVALID_VALUE error should be generated. Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/shaderapi.c | 9 + 1

[Mesa-dev] [PATCH 4/6] mesa/es3.1 : Correct error code for defect texture target

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to GLES 3.1 CTS test: ES31-CTS.texture_storage_multisample. APIGLGetTexLevelParameterifv. invalid_texture_target_rejected: GL_INVALID_ENUM should be generated when glGetTexLevelParameteriv is called with a defect texture target. Signed-off

[Mesa-dev] [PATCH 2/6] mesa/es3.1: Correct error code for illegal internal formats

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to GLES 3.1 CTS test: ES31-CTS.texture_storage_multisample. APIGLTexStorage2DMultisample. multisample_texture_tex_storage_2d_non_color_depth_or_stencil_ internal_formats_receted. An illegal internal format should generate a GL_INVALID_ENUM

[Mesa-dev] [PATCH 3/6] mesa/es3.1 : Correct error code for zero samples

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to GLES 3.1 CTS test: ES31-CTS.texture_storage_multisample. APIGLTexStorage2DMultisample. multisample_texture_tex_storage_2d_zero_sample- A call to glTexStorageMultisample with target GL_TEXTURE_2D_MULTISAMPLE and zero samples, should

[Mesa-dev] [PATCH 1/6] mesa/es3.1: Do not allow zero size multisampled textures

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to GLES 3.1 CTS test: ES31-CTS.texture_storage_multisample. APIGLTexStorage2DMultisample. multisample_texture_tex_storage_2d_ invalid_and_border_case_texture_sizes. Textures of size 0x0 are not allowed for GL_TEXTURE_2D_MULTISAMPLE. Signed

[Mesa-dev] [PATCH 0/6] OpenGL ES 3.1 API checks and corner cases.

2015-06-23 Thread Marta Lofstedt
This is a series of patches that solves a couple of API check and corner cases issues that the OpenGL ES 3.1 CTS exploits. Marta Lofstedt (6): mesa/es3.1: Do not allow zero size multisampled textures mesa/es3.1: Correct error code for illegal internal formats mesa/es3.1 : Correct error code

[Mesa-dev] [PATCH v2] mesa/es3.1: Fix error code for glCreateShaderProgram

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com According to the OpenGL ES standard, 7.3. For a call to glCreateShaderProgram with count 0, a GL_INVALID_VALUE error should be generated. Signed-off-by: Marta Lofstedt marta.lofst...@linux.intel.com --- src/mesa/main/shaderapi.c | 9 + 1

[Mesa-dev] [PATCH 5/6] mesa/es31: AtomicBufferBindings should be initialized to zero.

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Accoring to GLES 3.1 CTS: GLES 3.1 CTS: ES31-CTS.shader_atomic_counters. basic-buffer-bind. AtomicBufferBindings size and start should be initialized to zero. Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/mesa/main/bufferobj.c | 11

[Mesa-dev] [PATCH v3] glsl/es31:Allow GL_ARB_TEXTURE_MULTISAMPLE in GLSL ES 3.10

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt marta.lofst...@intel.com Signed-off-by: Marta Lofstedt marta.lofst...@intel.com --- src/glsl/builtin_functions.cpp | 3 +-- src/glsl/builtin_types.cpp | 2 +- src/glsl/glsl_lexer.ll | 13 +++-- src/glsl/glsl_parser_extras.h | 5 + 4 files changed

  1   2   >