projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838b196
)
r300g: increment num_z_clears only if we have Hyper-Z
author
Marek Olšák
<maraeo@gmail.com>
Sun, 2 Dec 2012 21:22:39 +0000
(22:22 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Sun, 2 Dec 2012 21:22:39 +0000
(22:22 +0100)
src/gallium/drivers/r300/r300_blit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_blit.c
b/src/gallium/drivers/r300/r300_blit.c
index 4f9d7c92fa84166b44c00f0a91b2a07097ee49bc..b4df3f2b0c1329dae610d9232338eb737c0a865f 100644
(file)
--- a/
src/gallium/drivers/r300/r300_blit.c
+++ b/
src/gallium/drivers/r300/r300_blit.c
@@
-245,8
+245,6
@@
static void r300_clear(struct pipe_context* pipe,
/* If we need Hyper-Z. */
if (zmask_clear || hiz_clear) {
- r300->num_z_clears++;
-
/* Try to obtain the access to Hyper-Z buffers if we don't have one. */
if (!r300->hyperz_enabled &&
(r300->screen->caps.is_r500 || debug_get_option_hyperz())) {
@@
-277,6
+275,7
@@
static void r300_clear(struct pipe_context* pipe,
r300->hiz_clear_value = r300_hiz_clear_value(depth);
r300_mark_atom_dirty(r300, &r300->hiz_clear);
}
+ r300->num_z_clears++;
}
}
}