[Mesa-dev] [PATCH] anv/device: Remove a use of a compound literal

Jason Ekstrand jason at jlekstrand.net
Fri Mar 17 22:16:18 UTC 2017


On Fri, Mar 17, 2017 at 3:15 PM, Ville Syrjälä <syrjala at sci.fi> wrote:

> On Fri, Mar 17, 2017 at 09:13:39AM -0700, Matt Turner wrote:
> > On Fri, Mar 17, 2017 at 9:05 AM, Jason Ekstrand <jason at jlekstrand.net>
> wrote:
> > > On Fri, Mar 17, 2017 at 8:45 AM, Matt Turner <mattst88 at gmail.com>
> wrote:
> > >>
> > >> On Thu, Mar 16, 2017 at 2:09 PM, Jason Ekstrand <jason at jlekstrand.net
> >
> > >> wrote:
> > >> > Older versions of GCC don't like compound literals in static const
> > >> > variable declarations because they don't think it's an actual
> constant
> > >> > value.
> > >>
> > >> Probably because the type it was cast to was explicitly non-const.
> > >
> > >
> > > So you think it will work if we use "(const VkExtent3D) { 1, 1, 1 }"?
> >
> > Yep, that's my guess.
>
> Pretty sure I tried that for the format stuff. Didn't work IIRC.
>

Yeah, it doesn't.  I had the bug reporter try it. :-(

I went ahead and landed this version.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170317/cc74b07a/attachment.html>


More information about the mesa-dev mailing list