[Mesa-stable] [PATCH] i965: Fix crash in fallback GTT mapping.

Anuj Phogat anuj.phogat at gmail.com
Fri Sep 1 17:19:26 UTC 2017


On Fri, Sep 1, 2017 at 10:02 AM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> We can't perf_debug without a context.
>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>  src/mesa/drivers/dri/i965/brw_bufmgr.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
> index d33754d9497..adff32c190c 100644
> --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
> +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
> @@ -944,8 +944,10 @@ brw_bo_map(struct brw_context *brw, struct brw_bo *bo, unsigned flags)
>      * We skip MAP_RAW because we want to avoid map_gtt's fence detiling.
>      */
>     if (!map && !(flags & MAP_RAW)) {
> -      perf_debug("Fallback GTT mapping for %s with access flags %x\n",
> -                 bo->name, flags);
> +      if (brw) {
> +         perf_debug("Fallback GTT mapping for %s with access flags %x\n",
> +                    bo->name, flags);
> +      }
>        map = brw_bo_map_gtt(brw, bo, flags);
>     }
>
> --
> 2.14.1
>
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the mesa-stable mailing list