mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 05:00:31 +01:00
i965: Fix crash in fallback GTT mapping.
We can't perf_debug without a context. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
e5654fc450
commit
52b65dfda8
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue