On 21/01/16 18:43, Ian Romanick wrote:
On 01/21/2016 09:10 AM, Jose Fonseca wrote:
FWIW see
https://bugs.freedesktop.org/show_bug.cgi?id=92869
http://cgit.freedesktop.org/~jrfonseca/mesa/commit/?h=es2_profile
On 21/01/16 16:58, Ilia Mirkin wrote:
The EXT spec has been updated to:
- logically combine the es2_profile and es_profile exts
- allow any legal version to be requested
dEQP tests request a specific ES version when using GLX, so this allows
dEQP upstream to run against GLX with the appropriate X server patch
(which had similar disabling logic).
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Matt Turner <[email protected]> (v1)
v1 -> v2:
- distinguish between DRI_API_GLES{,2,3}
- add GLX_EXT_create_context_es_profile client-side support
---
src/glx/dri2_glx.c | 11 ++++++++---
src/glx/dri3_glx.c | 7 ++++++-
src/glx/dri_common.c | 28 ++++++++++++----------------
src/glx/drisw_glx.c | 4 +++-
src/glx/glxextensions.c | 1 +
src/glx/glxextensions.h | 1 +
6 files changed, 31 insertions(+), 21 deletions(-)
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 651915a..97bf49c 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -1102,9 +1102,14 @@ dri2BindExtensions(struct dri2_screen *psc,
struct glx_display * priv,
__glXEnableDirectExtension(&psc->base, "GLX_ARB_create_context");
__glXEnableDirectExtension(&psc->base,
"GLX_ARB_create_context_profile");
- if ((mask & (1 << __DRI_API_GLES2)) != 0)
- __glXEnableDirectExtension(&psc->base,
- "GLX_EXT_create_context_es2_profile");
+ if ((mask & (1 << (__DRI_API_GLES |
+ __DRI_API_GLES2 |
+ __DRI_API_GLES3))) != 0) {
I recalled Ian Romanick's review saying that supporting GLES3 without
GLES2 was not a good idea:
Well, it's kind of nonsense. It's like saying you support OpenGL 2.0
but not 1.5.
Why didn't your patches land a year ago?
Something really should land soon... otherwise a third person will come
along and do it all again. :(
I noticed the problem in Mesa when adding
EXT_create_context_es_profile/EXT_create_context_es2_profile support to
apitrace.
I tried to draft the patch, but I don't have a any system setup to test
DRI and it would take me long time to set one up, so I hoped somebody
that developed DRI on a daily basis could meet half way and help with
the testing and polishing the patch, alas that didn't happen.
This experience certainly has ruined me for drafting patches to DRI (or
any other component I can't easily test) ever again. Next time filing a
bug is as far as I'll go.
Jose
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev