trace: allow image resource to be null
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 27 Feb 2018 00:26:36 +0000 (19:26 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 22 Apr 2018 03:29:39 +0000 (23:29 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/driver_trace/tr_dump_state.c

index e7e32237c4c4450b2d4c8774a07dbffc76a0ab39..2d12720ddd9c48aecdfb669cfa187ef7549af54c 100644 (file)
@@ -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;
    }