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

Ilia Mirkin imirkin at alum.mit.edu
Sun Apr 8 02:17:09 UTC 2018


ping

On Tue, Feb 27, 2018 at 12:19 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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