summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-08-08 18:43:42 +0200
committerMarek Olšák <maraeo@gmail.com>2010-08-08 22:53:31 +0200
commit4f5e51068bce4e32a9561b4b4d6f3feca33642bf (patch)
treec4cebb02d8437bfe405e458dfbd83c78a323dbad /src/gallium/drivers/r300/r300_emit.c
parent363b74f132a5a329fac25322f3c5c227c55b94a8 (diff)
r300g: flush zmasks of zbuffers we are going to use as samplers
It sometimes works, sometimes not. I guess we have the zmask offsets wrong.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 0c40e2db93..c35774c149 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -1069,6 +1069,9 @@ void r300_emit_zmask_clear(struct r300_context *r300, unsigned size, void *state
offset <<= offset_shift;
r300_emit_zmask_line_clear(r300, offset, stride, 0x0);//0xffffffff);
}
+
+ /* Mark the current zbuffer's zmask as dirty. */
+ tex->dirty_zmask[fb->zsbuf->level] = TRUE;
}
void r300_emit_ztop_state(struct r300_context* r300,