[Mesa-dev] [PATCH] radeonsi: fix occlusion queries on Hawaii

Alex Deucher alexdeucher at gmail.com
Sun Jul 27 19:51:12 PDT 2014


On Sat, Jul 26, 2014 at 6:59 AM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This was just a guess - and it worked!

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  src/gallium/drivers/radeon/r600_pipe_common.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
> index b132e04..dec81de 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -142,7 +142,13 @@ bool r600_common_context_init(struct r600_common_context *rctx,
>         rctx->ws = rscreen->ws;
>         rctx->family = rscreen->family;
>         rctx->chip_class = rscreen->chip_class;
> -       rctx->max_db = rscreen->chip_class >= EVERGREEN ? 8 : 4;
> +
> +       if (rscreen->family == CHIP_HAWAII)
> +               rctx->max_db = 16;
> +       else if (rscreen->chip_class >= EVERGREEN)
> +               rctx->max_db = 8;
> +       else
> +               rctx->max_db = 4;
>
>         rctx->b.transfer_map = u_transfer_map_vtbl;
>         rctx->b.transfer_flush_region = u_default_transfer_flush_region;
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list