[Mesa-dev] [PATCH v2 2/3] nvc0: check return value of nvc0_program_validate()

Ilia Mirkin imirkin at alum.mit.edu
Mon Dec 14 09:01:37 PST 2015


On Mon, Dec 14, 2015 at 11:59 AM, Pierre Moreau <pierre.morrow at free.fr> wrote:
> On 11:56 AM - Dec 14 2015, Ilia Mirkin wrote:
>> No, gp->code_size is set by the validation. You need to put that last.
>
> IIRC, you can't assume in which order the compiler will decide to evaluate the
> different expressions being AND'ed.

Actually you can. It's known as "short-circuiting".

  -ilia


More information about the mesa-dev mailing list