All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 48742] New: fbotexture -arb misrenders on nv43
@ 2012-04-15 22:10 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  0 siblings, 1 reply; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-04-15 22:10 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
        ReportedBy: randrik-JGs/UdohzUI@public.gmane.org


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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
@ 2012-04-15 22:11   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-04-15 22:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-04-15 22:11 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

https://bugs.freedesktop.org/show_bug.cgi?id=48742

--- Comment #1 from Andrew Randrianasulu <randrik-JGs/UdohzUI@public.gmane.org> 2012-04-15 15:11:39 PDT ---
Created attachment 60034
  --> https://bugs.freedesktop.org/attachment.cgi?id=60034
screenshot

Incorrect rendering

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2012-04-15 22:11   ` [Bug 48742] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2012-04-15 22:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-04-15 22:14   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-04-15 22:12 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

https://bugs.freedesktop.org/show_bug.cgi?id=48742

--- Comment #2 from Andrew Randrianasulu <randrik-JGs/UdohzUI@public.gmane.org> 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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
  2012-04-15 22:11   ` [Bug 48742] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-04-15 22:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2012-04-15 22:14   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2012-04-15 22:15   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-04-15 22:14 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

https://bugs.freedesktop.org/show_bug.cgi?id=48742

--- Comment #3 from Andrew Randrianasulu <randrik-JGs/UdohzUI@public.gmane.org> 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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (2 preceding siblings ...)
  2012-04-15 22:14   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2012-04-15 22:15   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-08-20  6:10   ` [Bug 48742] [NV30 gallium] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
                     ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2012-04-15 22:15 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

https://bugs.freedesktop.org/show_bug.cgi?id=48742

--- Comment #4 from Andrew Randrianasulu <randrik-JGs/UdohzUI@public.gmane.org> 2012-04-15 15:15:01 PDT ---
Created attachment 60035
  --> https://bugs.freedesktop.org/attachment.cgi?id=60035
screenshot - correct rendering

on llvmpipe

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (3 preceding siblings ...)
  2012-04-15 22:15   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-08-20  6:10   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-08-27  5:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-11-26  3:20   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-08-20  6:10 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 862 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=48742

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|fbotexture -arb misrenders  |[NV30 gallium] fbotexture
                   |on nv43                     |-arb misrenders on nv43

--- Comment #5 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> ---
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.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2080 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (4 preceding siblings ...)
  2013-08-20  6:10   ` [Bug 48742] [NV30 gallium] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-08-27  5:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  2013-11-26  3:20   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-08-27  5:01 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 1423 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=48742

--- Comment #6 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 2197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 48742] [NV30 gallium] fbotexture -arb misrenders on nv43
       [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
                     ` (5 preceding siblings ...)
  2013-08-27  5:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
@ 2013-11-26  3:20   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ @ 2013-11-26  3:20 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 848 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=48742

Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/A@public.gmane.org> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2265 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-26  3:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-15 22:10 [Bug 48742] New: fbotexture -arb misrenders on nv43 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
     [not found] ` <bug-48742-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2012-04-15 22:11   ` [Bug 48742] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2012-04-15 22:12   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2012-04-15 22:14   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2012-04-15 22:15   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-08-20  6:10   ` [Bug 48742] [NV30 gallium] " bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-08-27  5:01   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2013-11-26  3:20   ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ

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.