* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
@ 2017-06-12 14:14 ` bugzilla-daemon
2017-06-12 14:42 ` bugzilla-daemon
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-12 14:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 263 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
--- Comment #1 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Thanks for the report. I can reproduce this, and I'll investigate.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1030 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] 7+ messages in thread* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
2017-06-12 14:14 ` bugzilla-daemon
@ 2017-06-12 14:42 ` bugzilla-daemon
2017-06-13 6:17 ` bugzilla-daemon
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-12 14:42 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 774 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
Nicolai Hähnle <nhaehnle@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #2 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Your texture is incomplete, because you left Min/Mag filters at GL_LINEAR /
GL_LINEAR_MIPMAP_NEAREST, which is an incorrect setting for integer textures.
You need to switch both to GL_NEAREST instead.
It's a bug in the Windows driver that this condition isn't flagged.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2263 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] 7+ messages in thread* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
2017-06-12 14:14 ` bugzilla-daemon
2017-06-12 14:42 ` bugzilla-daemon
@ 2017-06-13 6:17 ` bugzilla-daemon
2017-06-13 7:56 ` bugzilla-daemon
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-13 6:17 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
--- Comment #3 from Pierre-Marc Jobin <pmjobin@gmail.com> ---
Nicolai,
First and foremost, I wish to thank you for your time and support.
I applied the fix you recommended and now, the testcase behaves as expected.
You mention the incompatible filtering parameter "condition being flagged" but
prior to filling a bug report, I did run the testcase against a debug context
(as well as under apitrace) and obtained no diagnostic information whatsoever
about the texture lack of completeness.
I understand that integer textures are incompatible with filtering settings
other than GL_NEAREST but I did expect glTextureStorage to take care of that as
it receives the internal format argument. It does take care of mipmap settings
afaik.
As a suggestion, would it be possible for the driver to at least generate a
ARB_debug_output message when linear filtering is applied to an integer
texture? (especially since this is a default setting) I wouldn't have suspected
a driver bug if I had been made aware of my mistake in some shape or form.
Thank you again,
PM
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2054 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] 7+ messages in thread* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
` (2 preceding siblings ...)
2017-06-13 6:17 ` bugzilla-daemon
@ 2017-06-13 7:56 ` bugzilla-daemon
2017-06-14 15:08 ` bugzilla-daemon
2017-06-18 21:19 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-13 7:56 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 458 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
--- Comment #4 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Hi Pierre-Marc! Conceptually, glTextureStorage can't take care of the sampler
settings unfortuantely because of the possibility of having separate sampler
objects.
I agree with you though that having a debug message on incomplete textures
would be useful.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1285 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] 7+ messages in thread* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
` (3 preceding siblings ...)
2017-06-13 7:56 ` bugzilla-daemon
@ 2017-06-14 15:08 ` bugzilla-daemon
2017-06-18 21:19 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-14 15:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 428 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
--- Comment #5 from Nicolai Hähnle <nhaehnle@gmail.com> ---
FWIW, in Mesa debug builds, you can set the environment variable
MESA_DEBUG=incomplete_tex, and it will print out information about incomplete
textures. Might be a nice project for somebody to hook that up with
ARB_debug_output.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1255 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] 7+ messages in thread* [Bug 101224] texelFetch(usampler) returns black color
2017-05-29 6:21 [Bug 101224] texelFetch(usampler) returns black color bugzilla-daemon
` (4 preceding siblings ...)
2017-06-14 15:08 ` bugzilla-daemon
@ 2017-06-18 21:19 ` bugzilla-daemon
5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2017-06-18 21:19 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 867 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101224
--- Comment #6 from Roland Scheidegger <sroland@vmware.com> ---
This is certainly not the first time it came up fwiw, especially since there's
binary drivers which will just ignore the incomplete texture since obviously
that sampler state isn't needed at all for texture fetch (yes technically they
are wrong). It is also very easy to miss since it's really not obvious you have
to worry about it for texel fetches (it is logical given how the incomplete
texture is defined, but still sort of surprising, especially when you might
have experience with d3d10 which doesn't have sampler state at all for just
fetches (loads)).
So I think everybody agrees hooking that detection up with ARB_debug_output
would be a good idea.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1697 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] 7+ messages in thread