mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
r300g: take hiz/zmask offsets into a/c when clearing.
Need to add a test for multi-hiz/zmask db in a single context. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ef3b17f5f3
commit
b55f627937
1 changed files with 4 additions and 0 deletions
|
|
@ -1008,6 +1008,8 @@ void r300_emit_hiz_clear(struct r300_context *r300, unsigned size, void *state)
|
|||
int i;
|
||||
|
||||
tex = r300_texture(fb->zsbuf->texture);
|
||||
|
||||
offset = tex->hiz_mem[fb->zsbuf->level]->ofs;
|
||||
stride = tex->desc.stride_in_pixels[fb->zsbuf->level];
|
||||
|
||||
/* convert from pixels to 4x4 blocks */
|
||||
|
|
@ -1043,6 +1045,8 @@ void r300_emit_zmask_clear(struct r300_context *r300, unsigned size, void *state
|
|||
tex = r300_texture(fb->zsbuf->texture);
|
||||
stride = tex->desc.stride_in_pixels[fb->zsbuf->level];
|
||||
|
||||
offset = tex->zmask_mem[fb->zsbuf->level]->ofs;
|
||||
|
||||
if (r300->z_compression == RV350_Z_COMPRESS_88)
|
||||
mult = 8;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue