[Mesa-stable] [PATCH 1/3] i965: Put an assertion to check valid varying_to_slot[varying]

Anuj Phogat anuj.phogat at gmail.com
Mon Apr 21 12:05:13 PDT 2014


On Mon, Apr 21, 2014 at 11:48 AM, Carl Worth <cworth at cworth.org> wrote:
> Anuj Phogat <anuj.phogat at gmail.com> writes:
>>        decl |= buffer << SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT;
>> +      assert(vue_map->varying_to_slot[varying] >= 0);
>>        decl |= vue_map->varying_to_slot[varying] <<
>
> I have the same question here as in my previous message to another
> patch.
>
> Could this new assert() cause a program which was previously functioning
> to stop functioning?
I don't think so. I'm not aware of any case. It might affect a program which was
earlier working just by luck.
>
> -Carl


More information about the mesa-stable mailing list