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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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 - 100 of 142 matches
Mail list logo