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

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : only expose GL_ARB_texture_multisample enums for gles 3.1 and Gl core. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 18 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff

[Mesa-dev] [PATCH v3 0/6] Continue enabling OpenGL ES 3.1

2015-06-15 Thread Marta Lofstedt
This is the V3 versions of my previous patch-set. Also, please note that Tapani's patch that was originally part of this patch-set was merged: git@83624c141d3 Marta Lofstedt (6): mesa/es3.1: enable GL_ARB_shader_image_load_store for gles3.1 mesa/es3.1: enable GL_ARB_shader_atomic_counter

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

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : only expose GL_ARB_compute_shader enums for gles 3.1 and GL core. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff

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

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : only expose ARB_shader_atomic_counters enums for gles 3.1 and GL core. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 22 +- 2 files changed, 19 insertions(+), 9 deletions

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

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : only expose GL_ARB_texture_gather enums for gles 3.1 and GL core. Signed-off-by: Marta Lofstedt --- 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-dev] [PATCH v3 6/6] mesa/es3.1: enable GL_ARB_explicit_uniform_location for GLES 3.1

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : only expose GL_ARB_explicit_uniform_location enums for gles 3.1 and GL core. Signed-off-by: Marta Lofstedt --- 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-dev] [PATCH v3 1/6] mesa/es3.1: enable GL_ARB_shader_image_load_store for gles3.1

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3: only expose enums from GL_ARB_shader_image_load_store for gles 3.1 and GL core Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 16 +--- 2 files changed, 15 insertions(+), 7 deletions

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

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- src/glsl/builtin_functions.cpp | 3 +-- src/glsl/builtin_types.cpp | 2 +- src/glsl/glsl_lexer.ll | 13 +++-- src/glsl/glsl_parser_extras.h | 7 ++- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git

[Mesa-dev] [PATCH v3] mesa/es3.1: Pass sample count check for multisampled textures

2015-06-15 Thread Marta Lofstedt
From: Marta Lofstedt v3 : Removed space in comment. Signed-off-by: Marta Lofstedt --- src/mesa/main/multisample.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 816837b..e2d50ac 100644 --- a/src/mesa/main

[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 Signed-off-by: Marta Lofstedt --- 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, 14 insertions(+), 9 deletions(-) diff --git a

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt When a program is compiled, but linking failed the sh->InfoLog could be NULL. This is expoloited by OpenGL ES 3.1 conformance tests. Signed-off-by: Marta Lofstedt --- src/mesa/main/shaderapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt GL_ARB_compute_shader is limited for GLSL version 430. This enables for GLSL ES version 310. Signed-off-by: Marta Lofstedt --- src/glsl/builtin_variables.cpp | 2 +- src/glsl/glsl_parser.yy| 3 +-- src/glsl/glsl_parser_extras.h | 5 + 3 files changed, 7

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- src/mesa/main/get_hash_params.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index 74ff3ba..f7134a9 100644 --- a/src/mesa/main

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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-off-by: Marta Lofstedt

[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 2/6] mesa/es3.1: Correct error code for illegal internal formats

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 error. Signed-off-by

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 return GL_INVALID_VALUE

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/shaderapi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/m

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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-by: Marta Lofstedt

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/bufferobj.c | 11 --- 1 file changed, 8 insertions(+), 3

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

2015-06-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/shaderapi.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/m

[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 v4 : only expose GL_ARB_texture_multisample enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 18 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff

[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 v4: only expose enums from GL_ARB_shader_image_load_store for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 14 -- 2 files changed, 14 insertions(+), 6 deletions

[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 v4 : only expose GL_ARB_explicit_uniform_location enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- 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-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 v4 : only expose GL_ARB_compute_shader enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff

[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 v4 : only expose ARB_shader_atomic_counters enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 20 +++- 2 files changed, 17 insertions(+), 9 deletions

[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 v4 : only expose GL_ARB_texture_gather enums for gles 3.1 and desktop GL. Signed-off-by: Marta Lofstedt --- 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-dev] [PATCH v2] mesa : NULL check InfoLog

2015-06-25 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/shaderapi.c | 5 - 1 file changed, 4 inse

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

2015-06-26 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/shaderapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 delet

[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 Signed-off-by: Marta Lofstedt --- 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/main/get.c index 60c1b1b..a443493 100644 --- a

[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 Signed-off-by: Marta Lofstedt --- 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/get.c b/src/mesa/main/get.c index ce78691..ec7eb71 100644

[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 Signed-off-by: Marta Lofstedt --- 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/src/mesa/main/get.c index dc04930..39fe725

[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 Signed-off-by: Marta Lofstedt --- 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/src/mesa/main/get.c index ec7eb71..dc04930 100644

[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 Signed-off-by: Marta Lofstedt --- 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 b/src/mesa/main/get.c index a443493..072c1a5

[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 Signed-off-by: Marta Lofstedt --- 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/src/mesa/main/get.c index 39fe725..60c1b1b 100644

[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 Signed-off-by: Marta Lofstedt --- 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 index 072c1a5..5b308e8 100644 --- a/src/mesa

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

2015-10-14 Thread Marta Lofstedt
From: Marta Lofstedt 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 Lofstedt --- src/glsl/linker.cpp

[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 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 to use MESA_SHADER_STAGES instead of

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

2015-10-20 Thread Marta Lofstedt
From: Marta Lofstedt 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 ARB_draw_indirect: https://www.

[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 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 --- src/mesa/main/api_validate.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src

[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 if

[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 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 array object is bound." Sig

[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 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 --- src/mesa/main/api_validate.c | 14 ++ 1 fi

[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 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 array object is bound." Sig

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

2015-10-26 Thread Marta Lofstedt
From: Marta Lofstedt 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 ARB_draw_indirect: https://www.

[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 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 --- src/mesa/main/api_validate.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

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

2015-10-29 Thread Marta Lofstedt
From: Marta Lofstedt 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 17 and OpenGL 4.5 specification, secti

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

2015-11-04 Thread Marta Lofstedt
From: Marta Lofstedt 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 see bug 92743 for more discussions

[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 Signed-off-by: Marta Lofstedt --- 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/get.c index 60c1b1b..a443493 100644 --- a/src

[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 Signed-off-by: Marta Lofstedt --- 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/main/get.c index 39fe725..60c1b1b 100644

[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 Signed-off-by: Marta Lofstedt --- 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/src/mesa/main/get.c index ec7eb71..dc04930 100644

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

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- 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/main/dd.h @@ -1017,6 +1017,13 @@ struct

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

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- 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 b/src/mapi/glapi/gen/gl_API.xml index 658efa4

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

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- 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/i965/brw_program.c index 85e271d..332d84e 100644

[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 of

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

2015-07-31 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- 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 a348cdb..be66a6c 100644 --- a/src/mesa/main

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

2015-08-04 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- src/mapi/glapi/gen/gl_API.xml | 4 src/mesa/main/shaderimage.c | 40 + src/mesa/main/shaderimage.h | 3 +++ src/mesa/main/tests/dispatch_sanity.cpp | 3 +-- 4 files

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: Impleme

[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 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 --- src/glsl/glsl_parser.yy | 5 ++--- src/glsl/glsl_parser_extras.h | 5 + 2 files

[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 Signed-off-by: Marta Lofstedt --- 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 index 7dc92f1..66c47de 100644 --- a/src/mesa/main

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

2015-08-12 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/texparam.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main

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

2015-08-13 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/bufferobj.c | 4

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

2015-08-13 Thread Marta Lofstedt
From: Marta Lofstedt 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 + 1 file changed, 9

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

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

[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 According to OpenGL ES specification section 7.12, GL_COMPUTE_WORK_GROUP_SIZE, is supported by the glGetProgramiv function. Signed-off-by: Marta Lofstedt --- src/mesa/main/shaderapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main

[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 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 --- src/mesa/main/get.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

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

2015-08-19 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/get.c | 8

[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 Signed-off-by: Marta Lofstedt --- 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/get.c +++ b/src/mesa/main/get.c @@ -1966,7 +1966,8

[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 Signed-off-by: Marta Lofstedt --- 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 --- a/src/mesa/main/varray.c +++ b/src/mesa/main

[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 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 was previously

[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 Signed-off-by: Marta Lofstedt --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4 ++-- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py

[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 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, FRAMEBUFFER_DEFAULT_SAMPLE

[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 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, FRAMEBUFFER_DEFAULT_SAMPLE

[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 Signed-off-by: Marta Lofstedt --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4 ++-- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py

[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 V2: Conform to new standard for exposing enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt --- src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml | 4 ++-- src/mapi/glapi/gen/apiexec.py | 4 ++-- src/mesa/main/get_hash_params.py

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

2015-08-28 Thread Marta Lofstedt
From: Marta Lofstedt 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: 781dc7c0e1f41502f18e07c0940af949a78d2792. However

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

2015-08-31 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/get.c | 8

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

2015-08-31 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/get.c | 8

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

2015-09-23 Thread Marta Lofstedt
doc: Set 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

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt Exposes the GL_OES_geometry_shader extension for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + src/mesa/main/tests/dispatch_sanity.cpp | 3 +++ 3 files changed, 5 insertions

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt This is needed to be able to implement the accepted OES extensions. Signed-off-by: Marta Lofstedt --- include/GLES2/gl2ext.h | 921 - 1 file changed, 915 insertions(+), 6 deletions(-) diff --git a/include/GLES2/gl2ext.h b

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt --- src/glsl/builtin_variables.cpp | 16 +--- src/glsl/glsl_parser.yy | 4 ++-- src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mapi/glapi/gen/apiexec.py | 2 +- src/mapi/glapi/gen/es_EXT.xml | 43

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt 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/mesa/main/context.h b/src/mesa/main

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt Signed-off-by: Marta Lofstedt --- 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/docs/GL3.txt @@ -238,7 +238,7 @@ GLES3.2, GLSL ES 3.2 GL_OES_copy_image

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

2015-09-23 Thread Marta Lofstedt
From: Marta Lofstedt Enable GL_OES_geometry_shader enums for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 18 +++ src/mesa/main/get_hash_params.py | 50 2 files changed, 48 insertions(+), 20 deletions

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

2015-12-29 Thread Marta Lofstedt
From: Marta Lofstedt 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 Lofstedt --- src/mesa/drivers/dri/i965

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

2016-01-08 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/bufferobj.c | 2 +- src/mesa/main/varray.c| 8

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

2016-01-12 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mapi/glapi/gen/apiexec.py

[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 for

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

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt Add xml definitions for the GL_OES_geometry_shader extension and expose the extension for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt Reviewed-by: Ilia Mirkin --- src/mapi/glapi/gen/apiexec.py | 5 ++-- src/mapi/glapi/gen/es_EXT.xml | 43

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

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt This adds glsl support of GL_OES_geometry_shader for OpenGL ES 3.1. Signed-off-by: Marta Lofstedt Reviewed-by: Ian Romanick --- src/glsl/builtin_variables.cpp | 25 + src/glsl/glsl_parser.yy | 4 ++-- src/glsl/glsl_parser_extras.cpp | 1

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

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt 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 Reviewed-by: Tapani Pälli --- src/mesa/main/get.c | 65 ++-- src/mesa

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

2016-01-21 Thread Marta Lofstedt
From: Marta Lofstedt 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 --- src/mesa/main/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/context.h

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

2016-01-26 Thread Marta Lofstedt
From: Marta Lofstedt 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. Signed-off-by: Marta Lofstedt Reviewed-

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

2015-05-06 Thread Marta Lofstedt
GL_ARB_texture_gather is needed for gles 3.1 conformance. Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 4 2 files changed, 10 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index dcf4f0a..95868bf

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

2015-05-06 Thread Marta Lofstedt
GL_ARB_explicit_uniform_location is required for gles 3.1 conformance Signed-off-by: Marta Lofstedt --- src/mesa/main/get.c | 6 ++ src/mesa/main/get_hash_params.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 97d3bf0

  1   2   >