[Mesa-dev] [PATCH] i965: Add an INTEL_DEBUG=spill option to test spilling

Jordan Justen jordan.l.justen at intel.com
Thu Apr 23 22:12:30 PDT 2015


On 2015-04-23 12:28:00, Ilia Mirkin wrote:
> On Thu, Apr 23, 2015 at 3:24 PM, Jordan Justen
> <jordan.l.justen at intel.com> wrote:
> >> > +#define DEBUG_SPILL               (1l << 31)
> >>
> >> That seems awkward... did you mean 1U? FWIW mesa's not at all careful
> >> about that...
> >
> > Yeah, I agree. 1l is awkward.
> >
> > But I think 1U is just unsigned. I don't think that is guaranteed to
> > be 64-bit.
> 
> In fact it's guaranteed to be 32-bit. Which can hold 1 << 31 just fine :)

I think unsigned is only guaranteed to be 16-bits.
http://en.wikipedia.org/wiki/C_data_types

-Jordan


More information about the mesa-dev mailing list