From fe8b6d7e1ff55ad0f2e7d798ce7c03a429f58762 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 26 Feb 2018 19:26:36 -0500 Subject: trace: allow image resource to be null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák --- src/gallium/auxiliary/driver_trace/tr_dump_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') 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; } -- cgit v1.2.3