[Mesa-dev] [PATCH] trace: allow image resource to be null

Ilia Mirkin imirkin at alum.mit.edu
Tue Feb 27 05:19:29 UTC 2018


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/drivers/trace/tr_dump_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/trace/tr_dump_state.c b/src/gallium/drivers/trace/tr_dump_state.c
index e7e32237c4c..2d12720ddd9 100644
--- a/src/gallium/drivers/trace/tr_dump_state.c
+++ b/src/gallium/drivers/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;
    }
-- 
2.16.1



More information about the mesa-dev mailing list