diff options
author | Marek Olšák <[email protected]> | 2011-02-28 22:10:04 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-03-01 00:46:54 +0100 |
commit | ebf69f2c508e2cb6df1437ef0e31cbc8b808824d (patch) | |
tree | b9485072b4c7b63df61329f3fe28805d86f34632 /src/gallium/drivers/r300/r300_emit.c | |
parent | d99ec708afbb785ce05031661222b38c9447059f (diff) |
r300g: disable HiZ permanently if the the depth function is inverted
Instead of temporarily.
The HiZ function (something like a depth function) is a property
of a HiZ buffer and can only be changed during HiZ clears.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 1adac3454b4..6061c2a623c 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -1028,8 +1028,6 @@ void r300_emit_hiz_clear(struct r300_context *r300, unsigned size, void *state) { struct pipe_framebuffer_state *fb = (struct pipe_framebuffer_state*)r300->fb_state.state; - struct r300_hyperz_state *z = - (struct r300_hyperz_state*)r300->hyperz_state.state; struct r300_resource* tex; CS_LOCALS(r300); @@ -1042,10 +1040,9 @@ void r300_emit_hiz_clear(struct r300_context *r300, unsigned size, void *state) OUT_CS(0xffffffff); END_CS; - z->current_func = -1; - /* Mark the current zbuffer's hiz ram as in use. */ r300->hiz_in_use = TRUE; + r300->hiz_func = HIZ_FUNC_NONE; r300_mark_atom_dirty(r300, &r300->hyperz_state); } |