[Mesa-dev] [PATCH] radeonsi: add the htile buffer to the CS ioctl buffer list

Alex Deucher alexdeucher at gmail.com
Tue Dec 17 07:11:08 PST 2013


On Tue, Dec 17, 2013 at 6:49 AM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This may fix the GPU crashes.


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

> ---
>  src/gallium/drivers/radeonsi/si_state.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index c1107c6..5c18538 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -1825,6 +1825,8 @@ static void si_db(struct r600_context *rctx, struct si_pm4_state *pm4,
>                 uint64_t va = r600_resource_va(&rctx->screen->b.b, &rtex->htile_buffer->b.b);
>                 db_htile_data_base = va >> 8;
>                 db_htile_surface = S_028ABC_FULL_CACHE(1);
> +
> +               si_pm4_add_bo(pm4, rtex->htile_buffer, RADEON_USAGE_READWRITE);
>         } else {
>                 db_htile_data_base = 0;
>                 db_htile_surface = 0;
> --
> 1.8.3.2
>
> _______________________________________________
> 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