<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [NV30 gallium] fbotexture -arb misrenders on nv43"
href="https://bugs.freedesktop.org/show_bug.cgi?id=48742#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [NV30 gallium] fbotexture -arb misrenders on nv43"
href="https://bugs.freedesktop.org/show_bug.cgi?id=48742">bug 48742</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>So while on the NV34 the rendering was bad with -ds, -arb, and -ds2, on NV42,
the rendering is only bad for -arb. Looking at what -arb does specially, it has
a "sizeFudge" parameter in the demo. If I avoid setting that, it all works fine
with -arb as well.
sizeFudge is used to reduce the size of the texture. Normally the texture is
512x512, but if I reduce it to 511x511, then things look much better (the 90
pixels that ought to be blacked out aren't, but at least the main stuff updates
seemingly correctly.)
And I'm seeing
[ 3360.231160] nouveau E[ PGRAPH][0000:02:00.0] ERROR nsource: DATA_ERROR
nstatus: BAD_ARGUMENT
[ 3360.231173] nouveau E[ PGRAPH][0000:02:00.0] ch 3 [0x00118000
fbotexture[782]] subc 7 class 0x4097 mthd 0x0208 data 0x08080345
method 0x0208 = NV30_3D_RT_FORMAT. The problem is the type -- it's set to both
linear *and* swizzle. A bit of investigation shows that this happens in
nv30_clear. fb->cbufs[0]->texture is swizzled, but fb->zsbuf->texture is not.
Not really sure how to handle this properly... I think fb->zsbuf->texture is
not swizzled because it's a NPOT texture. (And if I make everything be 511x511,
then everything becomes NPOT, and so the copy/etc succeeds.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>