New: fbotexture -arb misrenders on nv43
https://bugs.freedesktop.org/show_bug.cgi?id=48742
Bug #: 48742
Summary: fbotexture -arb misrenders on nv43
Classification: Unclassified
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
AssignedTo: [email protected]
ReportedBy: randrik-JGs/[email protected]
Using mesa up to commit 1ce9205f790471214b69c94f2ee07c4eabfa26f0 ("targets/xvmc-nouveau: fix accidental hardcoded include path") and hopefully latest libdrm/ddx, on kernel 965a47fb8ec0a72324aad8b9c0bd1c8b98cc7ca1 ("drm/nouveau/bios: fix regression on some nv4x board") gives me some more fun to report.
See attached screenshot of mesa demo "fbotexture" with -arb command line key. (Image may change if you run demo few times)
It draws OK with llvmpipe.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 48742] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
--- Comment #1 from Andrew Randrianasulu <randrik-JGs/[email protected]> 2012-04-15 15:11:39 PDT --- Created attachment 60034
--> https://bugs.freedesktop.org/attachment.cgi?id=60034
screenshot
Incorrect rendering
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 48742] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
--- Comment #2 from Andrew Randrianasulu <randrik-JGs/[email protected]> 2012-04-15 15:12:39 PDT --- It says:
guest@slax:~/botva/src/demos/src/demos$ ./fbotexture -arb GL_RENDERER = Gallium 0.4 on NV43 Color/Texture size: 512 x 512 Depth buffer size: 422 x 422 Depth renderbuffer size = 24 bits Stencil renderbuffer size = 8 bits Render to texture name: 1 Color attachment[0] name: 1 Stencil attachment name: 3 Depth attachment name: 3 Usage: -ds Use combined depth/stencil renderbuffer -arb Try GL_ARB_framebuffer_object's mismatched buffer sizes -ds2 Try GL_ARB_framebuffer_object's GL_DEPTH_STENCIL_ATTACHMENT Keys: a Toggle animation s/s Step/rotate c Toggle back-face culling w Toggle wireframe mode (front-face only) Esc Exit
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 48742] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
--- Comment #3 from Andrew Randrianasulu <randrik-JGs/[email protected]> 2012-04-15 15:14:09 PDT --- for correct image i get
guest@slax:~/botva/src/demos/src/demos$ LIBGL_ALWAYS_SOFTWARE=1 ./fbotexture -arb GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 0x209) Color/Texture size: 512 x 512 Depth buffer size: 422 x 422 Depth renderbuffer size = 24 bits Stencil renderbuffer size = 8 bits Render to texture name: 1 Color attachment[0] name: 1 Stencil attachment name: 3 Depth attachment name: 3 Usage: -ds Use combined depth/stencil renderbuffer -arb Try GL_ARB_framebuffer_object's mismatched buffer sizes -ds2 Try GL_ARB_framebuffer_object's GL_DEPTH_STENCIL_ATTACHMENT Keys: a Toggle animation s/s Step/rotate c Toggle back-face culling w Toggle wireframe mode (front-face only) Esc Exit
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 48742] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
--- Comment #4 from Andrew Randrianasulu <randrik-JGs/[email protected]> 2012-04-15 15:15:01 PDT --- Created attachment 60035
--> https://bugs.freedesktop.org/attachment.cgi?id=60035
screenshot - correct rendering
on llvmpipe
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
[Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|fbotexture -arb misrenders |[NV30 gallium] fbotexture
|on nv43 |-arb misrenders on nv43--- Comment #5 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Reproduced on a NV34 with both Mesa 9.1.6 and the semi-latest 9.3-git checkout (probably as of a few days ago, definitely no nv30 changes in there). The bad rendering is identical in all 3 of the fbotexture modes. (BTW, this took me a sec to figure out -- fbotexture is in the mesa/demos repo.)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- 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.)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=48742
Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #7 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- This should be "fixed" in mesa-git. The driver no longer reports ARB_framebuffer_object, so the -arb option shouldn't work. The hardware doesn't support differently-sized attachments. Since that extension is only part of OpenGL 3.0, and the HW is only OpenGL 2.1-capable, no reason to try to do a software fallback.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau