projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a8637
)
i965g: nasty hack for clearing y-tiled surfaces
author
Keith Whitwell
<keithw@vmware.com>
Tue, 1 Dec 2009 17:04:46 +0000
(17:04 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Tue, 1 Dec 2009 17:04:46 +0000
(17:04 +0000)
src/gallium/drivers/i965/brw_pipe_clear.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i965/brw_pipe_clear.c
b/src/gallium/drivers/i965/brw_pipe_clear.c
index f846b4342c48dc40fbadf94820a6201fd54d4463..211be881789f1a592463ab404f662ba5048b3180 100644
(file)
--- a/
src/gallium/drivers/i965/brw_pipe_clear.c
+++ b/
src/gallium/drivers/i965/brw_pipe_clear.c
@@
-79,7
+79,11
@@
try_clear( struct brw_context *brw,
BR13 |= BR13_565;
}
- assert(surface->tiling != BRW_TILING_Y);
+ /* XXX: nasty hack for clearing depth buffers
+ */
+ if (surface->tiling == BRW_TILING_Y) {
+ x2 = pitch;
+ }
if (surface->tiling == BRW_TILING_X) {
CMD |= XY_DST_TILED;