summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2018-02-26 19:26:36 -0500
committerIlia Mirkin <[email protected]>2018-04-21 23:29:39 -0400
commitfe8b6d7e1ff55ad0f2e7d798ce7c03a429f58762 (patch)
tree12816fc155a459f98eedeb8da82fdce2f620ee37
parent63572091b52ace35b60c46d092183bf818733ee0 (diff)
trace: allow image resource to be null
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/auxiliary/driver_trace/tr_dump_state.c2
1 files changed, 1 insertions, 1 deletions
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;
}