From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43 Date: Tue, 27 Aug 2013 05:01:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0955998325==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============0955998325== Content-Type: multipart/alternative; boundary="1377579673.b4fAB5F1.32415"; charset="us-ascii" --1377579673.b4fAB5F1.32415 Date: Tue, 27 Aug 2013 05:01:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=48742 --- Comment #6 from Ilia Mirkin --- 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.) -- You are receiving this mail because: You are the assignee for the bug. --1377579673.b4fAB5F1.32415 Date: Tue, 27 Aug 2013 05:01:13 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 6 on bug 48742 from
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.)


You are receiving this mail because:
  • You are the assignee for the bug.
--1377579673.b4fAB5F1.32415-- --===============0955998325== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0955998325==--