Summary: | [i965 Bisected]Piglit glx_glx-pixmap-multi fails, with DRI3 disabled | ||
---|---|---|---|
Product: | piglit | Reporter: | lu hua <huax.lu> |
Component: | tests | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | Piglit Mailing List <piglit> |
Severity: | normal | ||
Priority: | high | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2014-11-24 05:38:21 UTC
glx_glx-buffer-age and glx_glx-buffer-age_vblank_mode=0 skip due to DRI3 disabled. Bisecting the server reveals: commit d0da0e9c3bb8fe0cd4879ecb24d21715bfaa209b Author: Eric Anholt <eric@anholt.net> Date: Thu Sep 4 10:59:40 2014 -0700 glx: Disable indirect GLX contexts by default. Almost every situation of someone running indirect GLX is a mistake that results in X Server crashes. Indirect GLX is the cause of regular security vulnerabilities, and rarely provides any capability to the user. Just disable it unless someone wants to enable it for their special use case (using +iglx on the command line). Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com> So the question is why is mesa creating an indirect context in this case? Actually it is a bug in the test: diff --git a/tests/spec/glx_mesa_query_renderer/coverage.c b/tests/spec/glx_mesa_query_renderer/coverage.c index b55be16..0d36f4c 100644 --- a/tests/spec/glx_mesa_query_renderer/coverage.c +++ b/tests/spec/glx_mesa_query_renderer/coverage.c @@ -257,7 +257,7 @@ int main(int argc, char **argv) win = piglit_get_glx_window_unmapped(dpy, visinfo); glxWin = glXCreateWindow(dpy, fbconfig, win, NULL); - ctx = glXCreateNewContext(dpy, fbconfig, GLX_RGBA, NULL, True); + ctx = glXCreateNewContext(dpy, fbconfig, GLX_RGBA_TYPE, NULL, True); if (ctx == NULL) { fprintf(stderr, "Unable to create OpenGL context!\n"); piglit_report_result(PIGLIT_FAIL); Fixed by: 758a28d06cac0c0bd4b41bf0b07400cf3398c989 glx-query-renderer-coverage: Fix broken glXCreateNewContext call |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.