* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
@ 2016-03-17 16:33 bugzilla-daemon
2016-03-17 17:13 ` bugzilla-daemon
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-17 16:33 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1334 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
Bug ID: 94595
Summary: [Mesa AMD&swrast] Texture views attached as
framebuffers return their viewed tecture's color
encoding and render incorrectly
Product: Mesa
Version: git
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: esmith@feralinteractive.com
QA Contact: dri-devel@lists.freedesktop.org
As seen in the example given, when attaching an SRGB/RGB texture view is
created from an alternate RGB/SRGB texture, then attached as a framebuffer,
rendering will gamma correct wrongly and querying
GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING will return GL_LINEAR for an SRGB
backed frame buffer.
This is causing AA renders to be too dark as in our unreleased project, among
many other subtle colour issues.
Tested on latest 11.3 (git-9d9965c from oibaf) and seen on older drivers as
well.
$ g++ TextureViewFramebufferSRGBTest.cpp.cpp $( sdl2-config --cflags --libs )
-lGL
This reproduces on Mesa AMD and swrast.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2678 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
@ 2016-03-17 17:13 ` bugzilla-daemon
2016-03-18 9:07 ` bugzilla-daemon
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-17 17:13 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 251 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #1 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Thanks for the report - did you forget to attach a source file?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1175 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
2016-03-17 17:13 ` bugzilla-daemon
@ 2016-03-18 9:07 ` bugzilla-daemon
2016-03-18 9:07 ` bugzilla-daemon
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:07 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 335 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #2 from Edwin Smith <esmith@feralinteractive.com> ---
Created attachment 122407
--> https://bugs.freedesktop.org/attachment.cgi?id=122407&action=edit
TextureViewFramebufferSRGB Test Sample Code
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1444 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
2016-03-17 17:13 ` bugzilla-daemon
2016-03-18 9:07 ` bugzilla-daemon
@ 2016-03-18 9:07 ` bugzilla-daemon
2016-03-18 9:08 ` bugzilla-daemon
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:07 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 312 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #3 from Edwin Smith <esmith@feralinteractive.com> ---
Created attachment 122408
--> https://bugs.freedesktop.org/attachment.cgi?id=122408&action=edit
AMD Mesa Test Output
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1375 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (2 preceding siblings ...)
2016-03-18 9:07 ` bugzilla-daemon
@ 2016-03-18 9:08 ` bugzilla-daemon
2016-03-18 9:09 ` bugzilla-daemon
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #4 from Edwin Smith <esmith@feralinteractive.com> ---
Created attachment 122409
--> https://bugs.freedesktop.org/attachment.cgi?id=122409&action=edit
Intel Output (Correct Behaviour)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1411 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (3 preceding siblings ...)
2016-03-18 9:08 ` bugzilla-daemon
@ 2016-03-18 9:09 ` bugzilla-daemon
2016-03-18 9:09 ` bugzilla-daemon
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 325 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #5 from Edwin Smith <esmith@feralinteractive.com> ---
Created attachment 122410
--> https://bugs.freedesktop.org/attachment.cgi?id=122410&action=edit
Nvidia Output (Correct Behaviour)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1414 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (4 preceding siblings ...)
2016-03-18 9:09 ` bugzilla-daemon
@ 2016-03-18 9:09 ` bugzilla-daemon
2016-03-18 9:10 ` bugzilla-daemon
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 327 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #6 from Edwin Smith <esmith@feralinteractive.com> ---
Created attachment 122411
--> https://bugs.freedesktop.org/attachment.cgi?id=122411&action=edit
Swrast Output (Incorrect Behaviour)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1420 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (5 preceding siblings ...)
2016-03-18 9:09 ` bugzilla-daemon
@ 2016-03-18 9:10 ` bugzilla-daemon
2016-03-18 19:33 ` bugzilla-daemon
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 9:10 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
Edwin Smith <esmith@feralinteractive.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #122408|AMD Mesa Test Output |AMD Mesa Output (Incorrect
description| |Behaviour)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1196 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (6 preceding siblings ...)
2016-03-18 9:10 ` bugzilla-daemon
@ 2016-03-18 19:33 ` bugzilla-daemon
2016-03-18 23:14 ` bugzilla-daemon
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 19:33 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 268 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #7 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Hi Edwin, thanks for following up with the details. I'm going to look into
this.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1192 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (7 preceding siblings ...)
2016-03-18 19:33 ` bugzilla-daemon
@ 2016-03-18 23:14 ` bugzilla-daemon
2016-03-22 4:11 ` bugzilla-daemon
2016-03-22 9:35 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-18 23:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 417 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
--- Comment #8 from Nicolai Hähnle <nhaehnle@gmail.com> ---
There is a patch at https://patchwork.freedesktop.org/patch/77510/ which fixes
your test case (and should fix format casting with render-to-texture more
generally).
Let us know if this fixes your SRGB-related rendering problems.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1402 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (8 preceding siblings ...)
2016-03-18 23:14 ` bugzilla-daemon
@ 2016-03-22 4:11 ` bugzilla-daemon
2016-03-22 9:35 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-22 4:11 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 549 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
Nicolai Hähnle <nhaehnle@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #9 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Fixed in Mesa master, commit a8b315b8271e867db30650dedb52e53d8dd9667c
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2251 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
` (9 preceding siblings ...)
2016-03-22 4:11 ` bugzilla-daemon
@ 2016-03-22 9:35 ` bugzilla-daemon
10 siblings, 0 replies; 12+ messages in thread
From: bugzilla-daemon @ 2016-03-22 9:35 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 550 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=94595
Edwin Smith <esmith@feralinteractive.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
--- Comment #10 from Edwin Smith <esmith@feralinteractive.com> ---
The test case submitted now works as expected using the latest mesa git
drivers. Thank you for such a quick fix!
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2164 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-03-22 9:35 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-17 16:33 [Bug 94595] [Mesa AMD&swrast] Texture views attached as framebuffers return their viewed tecture's color encoding and render incorrectly bugzilla-daemon
2016-03-17 17:13 ` bugzilla-daemon
2016-03-18 9:07 ` bugzilla-daemon
2016-03-18 9:07 ` bugzilla-daemon
2016-03-18 9:08 ` bugzilla-daemon
2016-03-18 9:09 ` bugzilla-daemon
2016-03-18 9:09 ` bugzilla-daemon
2016-03-18 9:10 ` bugzilla-daemon
2016-03-18 19:33 ` bugzilla-daemon
2016-03-18 23:14 ` bugzilla-daemon
2016-03-22 4:11 ` bugzilla-daemon
2016-03-22 9:35 ` 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.