From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 30752] New: [r300g] Too many texture indirections. Strange behavior.
Date: Sun, 10 Oct 2010 07:50:29 -0700 (PDT) [thread overview]
Message-ID: <bug-30752-502@http.bugs.freedesktop.org/> (raw)
https://bugs.freedesktop.org/show_bug.cgi?id=30752
Summary: [r300g] Too many texture indirections. Strange
behavior.
Product: Mesa
Version: git
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r300
AssignedTo: dri-devel@lists.freedesktop.org
ReportedBy: isukin.intelliware@gmail.com
I have the naive blur convolution shader implementation:
uniform sampler2DRect tex;
void main(void)
{
vec3 color11 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(-1.0, -1.0)).rgb;
vec3 color12 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(0.0, -1.0)).rgb;
vec3 color13 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(1.0, -1.0)).rgb;
vec3 color21 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(-1.0, 0.0)).rgb;
vec3 color22 = texture2DRect(tex, gl_TexCoord[0].st).rgb;
vec3 color23 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(1.0, 0.0)).rgb;
vec3 color31 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(-1.0, 1.0)).rgb;
vec3 color32 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(0.0, 1.0)).rgb;
vec3 color33 = texture2DRect(tex, gl_TexCoord[0].st +
vec2(1.0, 1.0)).rgb;
vec3 color = (color11 + color12 + color13 +
color21 + color22 + color23 +
color31 + color32 + color33);
gl_FragColor = vec4(color / 9.0, 1);
}
It doesn't work, saying that there are too many texture indirections. But if I
assign to vec3 color the value:
(2.0 * color11 + 2.0 * color12 + 2.0 * color13 +
2.0 * color21 + 2.0 * color22 + 2.0 * color23 +
2.0 * color31 + 2.0 * color32 + 2.0 * color33);
the shader will work. Is it the bug or the normal behavior?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next reply other threads:[~2010-10-10 14:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-10 14:50 bugzilla-daemon [this message]
2010-10-10 16:13 ` [Bug 30752] [r300g] Too many texture indirections. Strange behavior bugzilla-daemon
2010-10-11 6:08 ` bugzilla-daemon
2010-10-11 6:43 ` bugzilla-daemon
2010-11-22 5:54 ` bugzilla-daemon
2010-11-22 10:03 ` 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-30752-502@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 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.