From: Sergii Romantsov Date: Mon, 5 Nov 2018 13:02:49 +0000 (+0200) Subject: i965/batch/debug: Allow log be dumped before assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5aeee1ab15f613403874661c7a186074af708928;p=mesa.git i965/batch/debug: Allow log be dumped before assert Message that may show the culprit of assert now will be dumped before that for debug purposes. Signed-off-by: Sergii Romantsov Reviewed-by: Lionel G Landwerlin Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 8b769eaf534..353fcba18f4 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -725,10 +725,10 @@ execbuffer(int fd, /* Update brw_bo::gtt_offset */ if (batch->validation_list[i].offset != bo->gtt_offset) { - assert(!(bo->kflags & EXEC_OBJECT_PINNED)); DBG("BO %d migrated: 0x%" PRIx64 " -> 0x%llx\n", bo->gem_handle, bo->gtt_offset, batch->validation_list[i].offset); + assert(!(bo->kflags & EXEC_OBJECT_PINNED)); bo->gtt_offset = batch->validation_list[i].offset; } }