[Bug 40554] r200 falls back to software when clearing FBOs

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Dec 5 07:20:41 PST 2012


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

--- Comment #5 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to comment #4)
> Clearing by drawing geometry? Isn't that somewhat inefficient? Doesn't the
> hardware have a nicer way to deal with this?
There are two normal methods how you can do ordinary buffer clears on this hw.
1) With the 2d blitter.
2) With the 3d engine (by drawing a tri/quad).
In practice, both should most likely have the same performance, as it should be
limited by memory bandwidth. I believe in theory the 2d blitter might be faster
for this class of hardware, but IIRC you also get problems with 3d engine
caches etc. Also, if you use 2d blit, you need to clear color and depth buffer
separately.
For depth/stencil buffer, you could use fast z clears (in some cases - it is
tricky, for instance can't clear depth and stencil individually and not with
pixel granularity viewport), which just sets a bit per tile saying this block
is cleared. All hyperz functionality (which fast z clear is) is however defunct
since dri2 (dri1 had it working mostly, was never enabled by default).

> 
> It's now also applying ATI_fragment_shader shaders when clearing. I'll send
> a patch for that.
Hmm yes that sounds wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121205/cd2e1040/attachment.html>


More information about the dri-devel mailing list