From 70ca5bcf1dee32290cd1ded4ea92aa980401d9c8 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Fri, 14 Jun 2019 18:12:31 +0200 Subject: [PATCH] Quickfix that works for me - I have no idea why... also rarely works without this... no idea why also when that happens! --- src/gallium/drivers/r300/r300_texture_desc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c index 37e7b5fc4e2..77d272bfb6b 100644 --- a/src/gallium/drivers/r300/r300_texture_desc.c +++ b/src/gallium/drivers/r300/r300_texture_desc.c @@ -375,8 +375,8 @@ static void r300_setup_hyperz_properties(struct r300_screen *screen, /* Get the ZMASK buffer size in dwords. */ zcomp_numdw = r300_pixels_to_dwords(stride, height, - zmask_blocks_x_per_dw[pipes-1] * zcompsize, - zmask_blocks_y_per_dw[pipes-1] * zcompsize); + zmask_blocks_x_per_dw[pipes-1] * zcompsize/2, + zmask_blocks_y_per_dw[pipes-1] * zcompsize/2); /* Check whether we have enough ZMASK memory. */ if (util_format_get_blocksizebits(tex->b.b.format) == 32 && -- 2.21.0