All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 27887] New: r300g: depth textures + fbo = broken glClear()
@ 2010-04-29 12:35 bugzilla-daemon
  2010-05-04 15:22 ` [Bug 27887] " bugzilla-daemon
  2010-05-04 18:01 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2010-04-29 12:35 UTC (permalink / raw)
  To: dri-devel

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

           Summary: r300g: depth textures + fbo = broken glClear()
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/r300
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: wixorpeek@gmail.com


Created an attachment (id=35333)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=35333)
test case

Attached code does not clear the screen as expected. The classic r300 driver
fails too. Sometimes geometry rendering gets messed up (however it is not as
easily reproducible).

Hardware: Radeon X1300 (RV515), kernel 2.6.33, xorg 1.7.7 rc1, driver from git
(up to commit 7327a84b...).

-- 
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] 3+ messages in thread

* [Bug 27887] r300g: depth textures + fbo = broken glClear()
  2010-04-29 12:35 [Bug 27887] New: r300g: depth textures + fbo = broken glClear() bugzilla-daemon
@ 2010-05-04 15:22 ` bugzilla-daemon
  2010-05-04 18:01 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2010-05-04 15:22 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from Wiktor Janas <wixorpeek@gmail.com> 2010-05-04 08:22:25 PDT ---
Created an attachment (id=35412)
 View: https://bugs.freedesktop.org/attachment.cgi?id=35412
 Review: https://bugs.freedesktop.org/review?bug=27887&attachment=35412

proposed patch

Looks to me like bug in u_blitter.c

The fragment shaders used by clear are generated on demand and cached. However,
shader that would pass the input color to the output buffer 0 is stored at the
same location as shader that would write to no output buffers (see logic at
blitter_get_fs_col). Therefore, if depth-buffer-only clear is done first,
subsequent color-buffer clear uses shader that generates no output.

The attached patch attempts to fix this (warning: I don't know mesa/gallium
well, just trying to get my app working). The test case still has issues
(sometimes fails to redraw the window when resized), but at least something
shows up. Also, the same test case renders garbage on llvmpipe (patched or
not).

-- 
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] 3+ messages in thread

* [Bug 27887] r300g: depth textures + fbo = broken glClear()
  2010-04-29 12:35 [Bug 27887] New: r300g: depth textures + fbo = broken glClear() bugzilla-daemon
  2010-05-04 15:22 ` [Bug 27887] " bugzilla-daemon
@ 2010-05-04 18:01 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2010-05-04 18:01 UTC (permalink / raw)
  To: dri-devel

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

Marek Olšák <maraeo@gmail.com> changed:

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

--- Comment #2 from Marek Olšák <maraeo@gmail.com> 2010-05-04 11:01:19 PDT ---
Committed with a little modification. Thank you very much!

The resizing bug is a separate issue, probably more related to st/dri than
r300g.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2010-05-04 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 12:35 [Bug 27887] New: r300g: depth textures + fbo = broken glClear() bugzilla-daemon
2010-05-04 15:22 ` [Bug 27887] " bugzilla-daemon
2010-05-04 18:01 ` bugzilla-daemon

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.