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:
parent
63572091b5
commit
fe8b6d7e1f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue