Summary: | MESA_META_DRAW_BUFFERS induced GL_INVALID_VALUE errors | ||
---|---|---|---|
Product: | Mesa | Reporter: | jpsinthemix |
Component: | Mesa core | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | kenneth |
Version: | 10.2 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
jpsinthemix
2014-06-17 00:57:41 UTC
oops, pasted in description twice; sorry about that.. hi.i set environment vars like: MESA_DEBUG=1 LIBGL_DEBUG=verbose i cannot see any libgl error in my kwin.log [1] for mesa-10.2.1 But this was slightly happen to me: https://bugs.freedesktop.org/show_bug.cgi?id=80069 Also its interesting to see this line into xorg.log [2]: [ 5.547] removing GPU device /sys/devices/pci0000:00/0000:00:02.0/drm/card0 /dev/dri/card0 [ 5.547] xf86: remove device 0 /sys/devices/pci0000:00/0000:00:02.0/drm/card0 [ 5.547] failed to find screen to remove [1] http://pastebin.com/qhRk2DTy [2] http://pastebin.com/ezX04Gzc (In reply to comment #2) > hi.i set environment vars like: > > MESA_DEBUG=1 LIBGL_DEBUG=verbose > > i cannot see any libgl error in my kwin.log [1] for mesa-10.2.1 > > But this was slightly happen to me: > > https://bugs.freedesktop.org/show_bug.cgi?id=80069 > > Also its interesting to see this line into xorg.log [2]: > > [ 5.547] removing GPU device > /sys/devices/pci0000:00/0000:00:02.0/drm/card0 /dev/dri/card0 > [ 5.547] xf86: remove device 0 > /sys/devices/pci0000:00/0000:00:02.0/drm/card0 > [ 5.547] failed to find screen to remove > > [1] http://pastebin.com/qhRk2DTy > [2] http://pastebin.com/ezX04Gzc If you set MESA_DEBUG=1 and you do not see this: Mesa: User error: GL_INVALID_VALUE in glDrawBuffersARB(n) in ~/.xsession-errors, then your problem is probably different from this one. Patch sent to the mesa-dev mailing list: http://lists.freedesktop.org/archives/mesa-dev/2014-June/061633.html This should fix the problem. Please test and let me know the results. Thanks. (In reply to comment #4) > Patch sent to the mesa-dev mailing list: > > http://lists.freedesktop.org/archives/mesa-dev/2014-June/061633.html > > This should fix the problem. Please test and let me know the results. > > Thanks. Looks good; thanks much Fixed on master by the following commit. This should get picked to the 10.2 branch soon, and it should be in 10.2.2. commit cc219d1d6567cfada5d8e9adf01c2f00e00c93ca Author: Ian Romanick <ian.d.romanick@intel.com> Date: Tue Jun 17 11:14:17 2014 -0700 meta: Respect the driver's maximum number of draw buffers Commit c1c1cf5f9 added infrastructure for saving and restoring draw buffer state. However, it universially used MAX_DRAW_BUFFERS, but many drivers support far fewer than that at limit. For example, the radeon and i915 drivers only support 1. Using MAX_DRAW_BUFFERS causes meta to generate GL errors. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80115 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Kenneth Graunke <kenneth@whitecape.org> [on Broadwell] Tested-by: jpsinthemix@verizon.net Cc: "10.2" <mesa-stable@lists.freedesktop.org> |
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.