From: Ilia Mirkin Date: Tue, 27 Feb 2018 00:26:36 +0000 (-0500) Subject: trace: allow image resource to be null X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe8b6d7e1ff55ad0f2e7d798ce7c03a429f58762;p=mesa.git trace: allow image resource to be null Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/driver_trace/tr_dump_state.c b/src/gallium/auxiliary/driver_trace/tr_dump_state.c index e7e32237c4c..2d12720ddd9 100644 --- a/src/gallium/auxiliary/driver_trace/tr_dump_state.c +++ b/src/gallium/auxiliary/driver_trace/tr_dump_state.c @@ -724,7 +724,7 @@ void trace_dump_image_view(const struct pipe_image_view *state) if (!trace_dumping_enabled_locked()) return; - if(!state) { + if (!state || !state->resource) { trace_dump_null(); return; }