From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 89156] r300g: GL_COMPRESSED_RED_RGTC1 / ATI1N support broken
Date: Mon, 02 Mar 2015 13:34:32 +0000 [thread overview]
Message-ID: <bug-89156-502-CBC16ElYVs@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-89156-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1531 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=89156
--- Comment #8 from Stefan Dösinger <stefandoesinger@gmx.at> ---
I ran some more tests, it seems that the format is operating at 3 bits
precision. I can produce 8 different output colors. Otherwise it seems to
follow the spec, so I don't think we're accidentally feeding the data into an
R3G3B2 texture.
On Windows the format operates at the expected precision - I can get any output
data from 0x00 to 0xff.
I skimmed the GPU docs for clues what may cause this behavior but could not
find anything. The things I checked were enabling / disabling filtering, make
sure texture address handling follows conditional NP2 texture rules, disabling
alpha blending. For the sake of testing I also tried disabling FBOs and all our
sRGB code.
I'm also quite sure that all 8 bits of red0 and red1 input arrive on the GPU. I
tested that by setting the code of each texel to 7 and then testing red0=1,
red1=0 and red0=0 and red1=1. In the former case this gives the result 0
(interpolation between red0 and red1), in the latter case this gives 0xfc
(MAXRED). The same works for the input values 0x80 and 0x7f.
I tested interpolation codes (e.g. red0=0x2, red1=0xa2, code 2 for each texel,
then try to reduce red0 or red1 by 1), and it seems that the input into the
interpolation is OK, but either the interpolation happens at a lower precision
or the output is clamped afterwards.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2331 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
next prev parent reply other threads:[~2015-03-02 13:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-15 16:28 [Bug 89156] r300g: GL_COMPRESSED_RED_RGTC1 / ATI1N support broken bugzilla-daemon
2015-02-21 10:49 ` bugzilla-daemon
2015-02-24 9:13 ` bugzilla-daemon
2015-02-24 21:38 ` bugzilla-daemon
2015-02-26 9:36 ` bugzilla-daemon
2015-02-26 11:23 ` bugzilla-daemon
2015-02-26 11:46 ` bugzilla-daemon
2015-02-26 13:26 ` bugzilla-daemon
2015-03-02 13:34 ` bugzilla-daemon [this message]
2015-03-02 13:50 ` bugzilla-daemon
2015-03-02 14:12 ` bugzilla-daemon
2015-03-09 20:05 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-89156-502-CBC16ElYVs@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon@freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).