mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 09:30:11 +01:00
r300g: fix fastfill when color and Z clear are invoked separately
This always restores the previous depth clear value after CBZB clear.
This commit is contained in:
parent
4985ce1755
commit
aa6bdd38af
2 changed files with 2 additions and 2 deletions
|
|
@ -176,7 +176,7 @@ static void r300_clear(struct pipe_context* pipe,
|
|||
uint32_t width = fb->width;
|
||||
uint32_t height = fb->height;
|
||||
boolean has_hyperz = r300->rws->get_value(r300->rws, R300_CAN_HYPERZ);
|
||||
uint32_t hyperz_dcv = 0;
|
||||
uint32_t hyperz_dcv = hyperz->zb_depthclearvalue;
|
||||
|
||||
/* Enable fast Z clear.
|
||||
* The zbuffer must be in micro-tiled mode, otherwise it locks up. */
|
||||
|
|
|
|||
|
|
@ -796,7 +796,7 @@ static void
|
|||
r300->z_compression, r300->z_fastfill,
|
||||
tex->zmask_mem[level] ? tex->zmask_mem[level]->ofs : 0xdeadbeef);
|
||||
}
|
||||
|
||||
|
||||
/* Polygon offset depends on the zbuffer bit depth. */
|
||||
if (r300->zbuffer_bpp != zbuffer_bpp) {
|
||||
r300->zbuffer_bpp = zbuffer_bpp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue