[Mesa-dev] [PATCH v1] i965/batch/debug: Allow log be dumped before assert

Kenneth Graunke kenneth at whitecape.org
Mon Nov 5 17:25:20 UTC 2018


On Monday, November 5, 2018 5:02:49 AM PST Sergii Romantsov wrote:
> Message that may show the culprit of assert now will
> be dumped before that for debug purposes.
> 
> CC: Kenneth Graunke <kenneth at whitecape.org>
> CC: Lionel G Landwerlin <lionel.g.landwerlin at intel.com>
> Signed-off-by: Sergii Romantsov <sergii.romantsov at globallogic.com>
> ---
>  src/mesa/drivers/dri/i965/intel_batchbuffer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
> index 8b769ea..353fcba 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;
>        }
>     }
> 

Pushed, thank you!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181105/29436893/attachment.sig>


More information about the mesa-dev mailing list