trace: allow image resource to be null

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Ilia Mirkin 2018-02-26 19:26:36 -05:00
parent 63572091b5
commit fe8b6d7e1f
1 changed files with 1 additions and 1 deletions

View 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;
}