From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 89012] Incorrect behaviour of half_pixel_center = 0 rasterizer setting on R600 and SI
Date: Sat, 21 Mar 2015 14:26:55 +0000 [thread overview]
Message-ID: <bug-89012-502-zJtJRT47y9@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-89012-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 1525 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=89012
--- Comment #5 from Axel Davy <axel.davy@ens.fr> ---
Created attachment 114504
--> https://bugs.freedesktop.org/attachment.cgi?id=114504&action=edit
Additionnal test
Additional test that draws a square of size 256 * 24.
The pos coordinates of the square are (-1-(1/256), 1+(1/16)) and (1-(1/256),
-1+(1/16))
the first texcoord a is 0 for the left of the square and 1 for the right
the second texcoord b is 0 at the top, 23 at the bottom.
the images shows the b-th bit of the mantisse of a.
On ilo, nouveau and llvmpipe, the image is black, except at the top, where we
see some white pixels with a specific scheme.
On radeonsi and r600, the top right triangle is the same than for the others,
but the bottom left triangle is almost full white.
This shows that the texcoord a has a value just below what it should have for
this triangle. This is the root of the problem, as the game shader with the
problem multiplies the texcoord value by a power of two, and then applies
floor. Because of this bug, it gets off by one problem.
This 'little below expected value on one of the triangle' problem doesn't
depend on the half_pixel_center = 0 parameter. It just happens that for what
the game does, the texcoord value with half_pixel_center = 1 instead of 0
(which would be correct value for nine), is above what it should be, and then
with the floor, the result is correct and not off by one.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2467 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-21 14:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 16:06 [Bug 89012] Incorrect behaviour of half_pixel_center = 0 rasterizer setting on R600 and SI bugzilla-daemon
2015-02-06 16:07 ` bugzilla-daemon
2015-02-06 16:31 ` bugzilla-daemon
2015-02-06 16:50 ` bugzilla-daemon
2015-02-06 16:51 ` bugzilla-daemon
2015-02-24 18:30 ` bugzilla-daemon
2015-03-08 7:34 ` bugzilla-daemon
2015-03-21 14:26 ` bugzilla-daemon [this message]
2015-03-21 15:00 ` bugzilla-daemon
2015-03-24 13:32 ` bugzilla-daemon
2015-03-24 13:38 ` [Bug 89012] Incorrect interpolation " bugzilla-daemon
2015-03-31 21:59 ` 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-89012-502-zJtJRT47y9@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