diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-07-12 13:23:24 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-07-12 13:26:00 +0200 |
commit | 8c836f7f740c6f74511c727c7bed0680ddba9974 (patch) | |
tree | 2e26e477cb1a9effb97eec38f7734fc87507312f /src/gallium/drivers/r300/r300_flush.c | |
parent | 78e8a8765f435bf0902d62afbcb3b8d68a0b716f (diff) | |
download | external_mesa3d-8c836f7f740c6f74511c727c7bed0680ddba9974.zip external_mesa3d-8c836f7f740c6f74511c727c7bed0680ddba9974.tar.gz external_mesa3d-8c836f7f740c6f74511c727c7bed0680ddba9974.tar.bz2 |
r300g: implement fast color clear
An initial implementation made by Dave Airlie.
For it to be used, a color-only clear must be invoked and exactly one
point-sampled render target must be set. The render target must be
macrotiled (for us to overcome alignment issues) and bpp must be either
16 or 32.
I can't see a difference in performance. :(
Conflicts:
src/gallium/drivers/r300/r300_blit.c
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_flush.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c index 2ebf1c8..6f31ba1 100644 --- a/src/gallium/drivers/r300/r300_flush.c +++ b/src/gallium/drivers/r300/r300_flush.c @@ -48,6 +48,7 @@ static void r300_flush(struct pipe_context* pipe, } if (r300->dirty_hw) { + r300_emit_hyperz_end(r300); r300_emit_query_end(r300); r300->flush_counter++; |