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

Marek Olšák maraeo at gmail.com
Mon Apr 9 18:04:47 UTC 2018


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sat, Apr 7, 2018 at 10:17 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:

> 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
> >
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180409/38e698d2/attachment.html>


More information about the mesa-dev mailing list