mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 07:00:27 +01:00
r300g: do not use fastfill with 16-bit zbuffers
To my knowledge, there is no way to flush zmask and thus write the clear value. This fixes zbuffer reads, among other things.
This commit is contained in:
parent
076c53879b
commit
06991d87be
1 changed files with 4 additions and 0 deletions
|
|
@ -357,6 +357,10 @@ void r300_zmask_alloc_block(struct r300_context *r300, struct r300_surface *surf
|
|||
tex->desc.b.b.target != PIPE_TEXTURE_2D)
|
||||
return;
|
||||
|
||||
/* Cannot flush zmask of 16-bit zbuffers. */
|
||||
if (util_format_get_blocksizebits(tex->desc.b.b.format) == 16)
|
||||
return;
|
||||
|
||||
if (tex->zmask_mem[level])
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue