[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2019-09-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

GitLab Migration User  changed:

   What|Removed |Added

 Resolution|--- |MOVED
 Status|NEW |RESOLVED

--- Comment #36 from GitLab Migration User  ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/307.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2018-04-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #35 from Tony Mechelynck  ---
FWIW, the Mozilla bug mentioned in comment #1 was VERIFIED FIXED 2011-06-17 in
https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c88 (Firefox 7, then ported
to Firefox 6). Some water has passed under the bridge since then. :-)

FWIW again, my current Mesa version is described as shown below. It's been
years since I last experienced the bug.

linux-2iyu:~ # rpm -qi Mesa
Name: Mesa
Version : 17.0.5
Release : 176.1
Architecture: x86_64
Install Date: Sun 10 Sep 2017 16:41:26 CEST
Group   : System/Libraries
Size: 17362987
License : MIT
Signature   : RSA/SHA256, Wed 06 Sep 2017 14:26:43 CEST, Key ID
b88b2fd43dbdc284
Source RPM  : Mesa-17.0.5-176.1.src.rpm
Build Date  : Wed 06 Sep 2017 14:18:59 CEST
Build Host  : cloud126
Relocations : (not relocatable)
Packager: http://bugs.opensuse.org
Vendor  : openSUSE
URL : http://www.mesa3d.org
Summary : System for rendering interactive 3-D graphics
Description :
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.

Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.

* OpenGL is a trademark of Silicon Graphics Incorporated.
Distribution: openSUSE Leap 42.3

-- 
You are receiving this mail because:
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2018-04-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

Timothy Arceri  changed:

   What|Removed |Added

  Component|Other   |Drivers/DRI/swrast

-- 
You are receiving this mail because:
You are the assignee for the bug.___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

Karl Tomlinson bugs.freedesk...@karlt.net changed:

   What|Removed |Added

 CC||bugs.freedesk...@karlt.net

--- Comment #7 from Karl Tomlinson bugs.freedesk...@karlt.net 2011-06-14 
23:09:11 PDT ---
Yes, sorry, there are probably a few confounding issues in the one bug report.

Refer to https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c3 for glxinfo in
the configuration involved here.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #18 from Tony Mechelynck antoine.mechely...@gmail.com 2011-06-15 
08:08:45 PDT ---
Created an attachment (id=48001)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=48001)
firefox.bin.trace

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #19 from Tony Mechelynck antoine.mechely...@gmail.com 2011-06-15 
08:10:04 PDT ---
Created an attachment (id=48002)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=48002)
firefox-bin.1.trace

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #20 from Tony Mechelynck antoine.mechely...@gmail.com 2011-06-15 
08:11:48 PDT ---
Created an attachment (id=48003)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=48003)
minefield.log

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #22 from Tony Mechelynck antoine.mechely...@gmail.com 2011-06-15 
08:21:35 PDT ---
(In reply to comment #16)
 Tony, if you have time, could you please try running firefox with apitrace as
 explained in comment 13?
 
 Note: you'll need to install cmake and you'll need to cd to the apitrace
 directory you just cloned before running cmake.
 
 Please use a debug build of Firefox for that, for example the latest build I
 made for you, as we need to see where that WARNING: Error resizing offscreen
 framebuffer -- framebuffer not complete was printed and it's only printed in
 debug builds. Please keep MOZ_X_SYNC=1 but no need for MOZ_GL_DEBUG_VERBOSE=1
 as apitrace replaces that.

(In reply to comment #13)
[...]
   git clone https://github.com/apitrace/apitrace.git
   cmake .
   make
   LD_PRELOAD=$PWD/glxtrace.so /path/to/firefox
 
 and firefox*.trace will be generated.

cmake 2.8.3-5.2 is already installed
git clone... cmake... make... done
LD_PRELOAD=$PWD/glxtrace.so MOZ_X_SYNC=1 ~/Minefield/firefox/firefox --sync -P
virgin -no-remote 21|tee ~/Minefield/minefield.log
...firefox opens
...look at a few tabs, they seem normal
...Ctrl+Q
...Breakpad comes up, a little comment, [ Quit Firefox ]
ls -l *.trace
-rw-r--r-- 1 root root 11131 Jun 15 16:53 firefox-bin.1.trace
-rw-r--r-- 1 root root  1179 Jun 15 16:50 firefox-bin.trace
ls -l ~/Minefield/minefield.log
-rw-r--r-- 1 root root 30450 Jun 15 16:53 minefield.log
ls -l ~/.mozilla/firefox/Crash\ Reports/submitted
...the oldest one is:
-rw-r--r-- 1 root root  50 Jun 15 16:53
bp-47314ac3-428f-4bab-af98-b88c12110615.txt
meaning that more info about the crash will be found at
https://crash-stats.mozilla.com/report/index/47314ac3-428f-4bab-af98-b88c12110615

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #28 from Benoit Jacob bja...@mozilla.com 2011-06-15 14:12:39 PDT 
---
(In reply to comment #27)
 Created an attachment (id=48014)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=48014)
 minefield.log.bz2 (no crash at the end)

Thanks a lot!

The log shows that glGetIntegerv(FRAMEBUFFER_BINDING, result) always returns
0. Even right after glBindFramebuffer called with a value just returned by
glGenFramebuffers. Even when a glFramebufferRenderbuffer call succeeds, which
is incompatible with the FB binding being 0.

 No crash on closedown.

\o/ !!!

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #30 from Benoit Jacob bja...@mozilla.com 2011-06-15 14:14:21 PDT 
---
Note that with the NVIDIA driver, nonzero FB bindings are correctly reported by
this build.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #31 from Brian Paul brian.e.p...@gmail.com 2011-06-15 14:25:18 
PDT ---
(In reply to comment #28)
 (In reply to comment #27)
  Created an attachment (id=48014)
 -- (https://bugs.freedesktop.org/attachment.cgi?id=48014)
  minefield.log.bz2 (no crash at the end)
 
 Thanks a lot!
 
 The log shows that glGetIntegerv(FRAMEBUFFER_BINDING, result) always returns
 0. Even right after glBindFramebuffer called with a value just returned by
 glGenFramebuffers. Even when a glFramebufferRenderbuffer call succeeds, which
 is incompatible with the FB binding being 0.

I just hacked a piglit fbo test to query GL_FRAMEBUFFER_BINDING after
glBindFramebuffer() and assert that the value returned matches the bind call. 
It works fine here.  I don't know what's going on in your test.  Which version
of Mesa are you using?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #34 from Tony Mechelynck antoine.mechely...@gmail.com 2011-06-15 
14:46:19 PDT ---
(In reply to comment #32)
 (In reply to comment #31)
  I just hacked a piglit fbo test to query GL_FRAMEBUFFER_BINDING after
  glBindFramebuffer() and assert that the value returned matches the bind 
  call. 
  It works fine here.  I don't know what's going on in your test.  Which 
  version
  of Mesa are you using?
 
 See comment 1, Tony is using Mesa 7.10.2.

and (see comment #8 /in fine/) it's the newest version I can use until or
unless openSUSE decides to distribute an upgraded version. If necessary, a bug
can be opened at bugzilla.novell.com if the Mesa 7.10.3 is found to fix a
possible crash (let's say in firefox-aurora). IIUC the liaison officer between
Mozilla and SuSE is Wolfgang Rosenauer. I don't know if he's registered at
bugs.freedesktop.org.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #1 from Benoit Jacob bja...@mozilla.com 2011-06-14 12:35:21 PDT 
---
Here's some info from the user who reported the bug to us:

OS: openSUSE Linux 11.4 (version: Final, architecture: x86_64)

Software packages (among others, of course):
xorg-x11-driver-video 7.6-53.58.1 (intel driver in service)
Mesa 7.10.2-7.3.1
DirectFB-Mesa 1.4.5-14.2

Hardware devices (among others, of course):
Motherboard: Intel/Fujitsu Scenic W620 (handling display, network, PCI)
Framebuffer Device: Intel(r)915G/915GV/910GL Graphics Controller

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #2 from Benoit Jacob bja...@mozilla.com 2011-06-14 12:37:44 PDT 
---
...and, in case you wonder what LOCAL_GL_FRAMEBUFFER_BINDING is, it's just the
same as GL_FRAMEBUFFER_BINDING, i forgot to edit that part. It's defined as
0x8CA6 which is the correct value.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

Ian Romanick i...@freedesktop.org changed:

   What|Removed |Added

   Keywords||NEEDINFO

--- Comment #3 from Ian Romanick i...@freedesktop.org 2011-06-14 12:45:41 PDT 
---
(In reply to comment #0)
 This comes from https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c64
 
 This seems to be a swrast bug, but I didn't find the bugzilla component for 
 it.
 
 I have code like this:
 
 glBindFramebuffer(...some arguments...);
 glFramebufferRenderbuffer(...some arguments...);
 GLenum error = glGetError();
 if (error != GL_NO_ERROR)
   exit(1);
 // no GL error at this point
 GLint framebuffer;
 glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, framebuffer);
 if (!framebuffer)
   printf(WTF???\n);
 
 The bug is that the WTF line is reached. Since glBindFramebuffer and
 glFramebufferRenderbuffer succeeded, for sure we have a FBO bound. So it's a
 bug that glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, result) returns 0.

Questions:

1. In the 'if (!framebuffer)' case, is there a GL error?

2. If you initialize framebuffer to, say, 0xDEADBEEF before calling
glGetIntegerv, is it still 0 after?

3. Does this still happen with more recent bits?  Mesa 7.10.3 was released
yesterday.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

--- Comment #4 from Benoit Jacob bja...@mozilla.com 2011-06-14 13:17:06 PDT 
---
 Questions:

I don't know the answers to these questions. I'll check if the user who
reported this is interested in further debugging this and I'll make him a
build.

From your perspective, how important are swrast bugs? I've been told that
swrast is getting replaced by other software renderers, llvmpipe and
softpipe.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

Robert Kaiser ka...@kairo.at changed:

   What|Removed |Added

 CC||ka...@kairo.at

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] [Bug 38312] Swrast doesn't really know whether a Framebuffer object is bound

2011-06-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38312

Ian Romanick i...@freedesktop.org changed:

   What|Removed |Added

 CC||cwo...@cworth.org,
   ||jfons...@vmware.com

--- Comment #6 from Ian Romanick i...@freedesktop.org 2011-06-14 15:19:19 PDT 
---
(In reply to comment #4)
  Questions:
 
 I don't know the answers to these questions. I'll check if the user who
 reported this is interested in further debugging this and I'll make him a
 build.
 
 From your perspective, how important are swrast bugs? I've been told that
 swrast is getting replaced by other software renderers, llvmpipe and
 softpipe.

Most of this code is used by all Mesa drivers.  From one of the posts
(https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c65) in the Mozilla bug,
it looked like it should use the i915 driver instead of swrast anyway.  An
earlier post (https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c56) even
suggests r600.  It's a little confusing.

I wonder if apitrace (http://zrusin.blogspot.com/2011/04/apitrace.html) could
capture a trace for Mesa developers to replay...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev