On Sat, Mar 24, 2018 at 5:27 PM, Marek Olšák <mar...@gmail.com> wrote:

> On Sat, Mar 24, 2018 at 1:36 PM, Connor Abbott <cwabbo...@gmail.com>
> wrote:
>
>> If Gallium was being lazy and not
>> specifying the bounds for internal shaders, that needs to be fixed for
>> the HW to work properly.
>>
>
> I don't understand the sentence. Shaders don't interact with vertex
> indices. I also don't like the word "lazy". The proper expression is
> "saving time".
>

Here is how to do it:

if (max_index != ~0u)
   // index bounds are valid;
else
   // scan the index buffer manually;

u_vbuf_get_minmax_index can be used for the scanning.

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

Reply via email to