All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken
@ 2011-05-08 14:00 bugzilla-daemon
  2011-05-12 16:11 ` [Bug 36965] " bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-08 14:00 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

           Summary: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken
           Product: Mesa
           Version: 7.10
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: marlam@marlam.de


The GL extension GL_EXT_texture_sRGB (which is in OpenGL 2.1 core) defines the
texture formats GL_SRGB and friends and specifies that sampling such a texture
automatically converts the values from non-linear RGB (sRGB) to linear RGB.

However, this conversion is not performed; the textures are sampled as if they
were normal GL_RGB textures. This results in wrong colors (e.g. in the Bino 3D
video player: far too bright).

I'm running Ubuntu 11.04 on x86_64 and get the following version info from GL:
OpenGL version: 2.1 Mesa 7.10.2
OpenGL renderer: Gallium 0.4 on AMD RV710
OpenGL vendor: X.Org

If you need more information, please let me know.

[This is the same as bug 32323, but re-reported for newer Mesa versions]

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
@ 2011-05-12 16:11 ` bugzilla-daemon
  2011-05-12 16:18 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-12 16:11 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #1 from Pavel Ondračka <pavel.ondracka@email.cz> 2011-05-12 09:11:08 PDT ---
I see similar problems in Starcraft 2, there are also over bright textures
which go away when MESA_EXTENSION_OVERRIDE="-GL_EXT_texture_sRGB_decode" is
set.
OpenGL renderer string: Gallium 0.4 on ATI RV530
OpenGL version string: 2.1 Mesa 7.11-devel (git-32a95cb)

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
  2011-05-12 16:11 ` [Bug 36965] " bugzilla-daemon
@ 2011-05-12 16:18 ` bugzilla-daemon
  2011-05-12 17:20 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-12 16:18 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #2 from Pavel Ondračka <pavel.ondracka@email.cz> 2011-05-12 09:18:11 PDT ---
BTW this should be probably a mesa core bug, right?

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
  2011-05-12 16:11 ` [Bug 36965] " bugzilla-daemon
  2011-05-12 16:18 ` bugzilla-daemon
@ 2011-05-12 17:20 ` bugzilla-daemon
  2011-05-12 19:50 ` [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too) bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-12 17:20 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #3 from Martin Lambers <marlam@marlam.de> 2011-05-12 10:20:51 PDT ---
(In reply to comment #2)
> BTW this should be probably a mesa core bug, right?

There is code in Mesa to handle SRGB textures correctly, see
http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/main/texgetimage.c lines
223-301.

I guess drivers can override this, but I don't know the internal structure of
Mesa.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too)
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
                   ` (2 preceding siblings ...)
  2011-05-12 17:20 ` bugzilla-daemon
@ 2011-05-12 19:50 ` bugzilla-daemon
  2011-05-12 21:08 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-12 19:50 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

Marek Olšák <maraeo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GL_EXT_texture_sRGB         |GL_EXT_texture_sRGB
                   |(included in OpenGL 2.1) is |(included in OpenGL 2.1) is
                   |broken                      |broken (glean/texture_srgb
                   |                            |broken too)

--- Comment #4 from Marek Olšák <maraeo@gmail.com> 2011-05-12 12:50:02 PDT ---
There is a lot of other code which plays role in handling sRGB textures. I
don't think getteximage.c is relevant to this issue(s).

Nevertheless, it looks like Pavel's and Martin's issues are different bugs.

Pavel reported that GL_EXT_texture_sRGB_decode, which is only in 7.11, is
broken specifically on r300g, but other drivers might be affected as well and
it definitely looks like a Mesa core bug. Pavel, could you please add it as a
new bug against Mesa core?

Martin's issue is likely related to the fact that piglit/glean/texture_srgb
fails on r600g. Taking a look at it might be a good start.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too)
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
                   ` (3 preceding siblings ...)
  2011-05-12 19:50 ` [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too) bugzilla-daemon
@ 2011-05-12 21:08 ` bugzilla-daemon
  2012-11-02 10:37 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2011-05-12 21:08 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #5 from Pavel Ondračka <pavel.ondracka@email.cz> 2011-05-12 14:07:59 PDT ---
(In reply to comment #4)
> There is a lot of other code which plays role in handling sRGB textures. I
> don't think getteximage.c is relevant to this issue(s).
> 
> Nevertheless, it looks like Pavel's and Martin's issues are different bugs.
> 
> Pavel reported that GL_EXT_texture_sRGB_decode, which is only in 7.11, is
> broken specifically on r300g, but other drivers might be affected as well and
> it definitely looks like a Mesa core bug. Pavel, could you please add it as a
> new bug against Mesa core?
> 
Reported against mesa core as bug 37150.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too)
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
                   ` (4 preceding siblings ...)
  2011-05-12 21:08 ` bugzilla-daemon
@ 2012-11-02 10:37 ` bugzilla-daemon
  2012-11-02 11:55 ` bugzilla-daemon
  2012-11-02 12:13 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2012-11-02 10:37 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 988 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #6 from Andreas Boll <andreas.boll.dev@gmail.com> ---
(In reply to comment #4)
> There is a lot of other code which plays role in handling sRGB textures. I
> don't think getteximage.c is relevant to this issue(s).
> 
> Nevertheless, it looks like Pavel's and Martin's issues are different bugs.
> 
> Pavel reported that GL_EXT_texture_sRGB_decode, which is only in 7.11, is
> broken specifically on r300g, but other drivers might be affected as well
> and it definitely looks like a Mesa core bug. Pavel, could you please add it
> as a new bug against Mesa core?
> 
> Martin's issue is likely related to the fact that piglit/glean/texture_srgb
> fails on r600g. Taking a look at it might be a good start.

the piglit passes for me on my rv770 with mesa from git (470952f)

@Martin: Can you test with a newer version of mesa (9.0 or mesa from git)?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1949 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too)
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
                   ` (5 preceding siblings ...)
  2012-11-02 10:37 ` bugzilla-daemon
@ 2012-11-02 11:55 ` bugzilla-daemon
  2012-11-02 12:13 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2012-11-02 11:55 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 566 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=36965

--- Comment #7 from Martin Lambers <marlam@marlam.de> ---
I don't have access anymore to the AMD graphics card that originally exposed
the problem for me.

I can only confirm that the problem does not exist with Mesa 9.0 (from Ubuntu
12.10) with an Intel Sandybridge GPU:
OpenGL Version: 3.0 Mesa 9.0
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL Vendor: Intel Open Source Technology Center

Thanks for your work.

Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1412 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too)
  2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
                   ` (6 preceding siblings ...)
  2012-11-02 11:55 ` bugzilla-daemon
@ 2012-11-02 12:13 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2012-11-02 12:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=36965

Andreas Boll <andreas.boll.dev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1270 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-02 12:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-08 14:00 [Bug 36965] New: GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken bugzilla-daemon
2011-05-12 16:11 ` [Bug 36965] " bugzilla-daemon
2011-05-12 16:18 ` bugzilla-daemon
2011-05-12 17:20 ` bugzilla-daemon
2011-05-12 19:50 ` [Bug 36965] GL_EXT_texture_sRGB (included in OpenGL 2.1) is broken (glean/texture_srgb broken too) bugzilla-daemon
2011-05-12 21:08 ` bugzilla-daemon
2012-11-02 10:37 ` bugzilla-daemon
2012-11-02 11:55 ` bugzilla-daemon
2012-11-02 12:13 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.