On Friday, February 27, 2015 02:04:47 PM Jose Fonseca wrote:
> On 26/02/15 18:07, Brian Paul wrote:
[snip]
> > AFAIK, there's no zeroing version of alloca().
> 
> Yes, I also searched.  And unfortunately inline functions can't be used 
> due to alloca semantics.  I'm not sure if there's any C-preprocessor magic.
> 
> 
> Anyway, depending on the maximum size of these alloca arrays, we might 
> actually need to use malloc, as Windows stack is 1MB by default, plus 
> the OpenGL driver only gets to use whatever stack is left from the 
> application.
> 
> If using C++ on NIR is acceptable, std::vector<> would be a nice 
> solution overall: practically the same syntax/semantics as C99 VLAs, 
> plus no risk of stack overflow.

We're hoping to keep it C99 - malloc and freeing them is probably the
best plan.  Thanks again!

--Ken

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to