[Mesa-dev] Question about min_index/max_index calculation
Marek Olšák
maraeo at gmail.com
Sat Mar 24 21:32:48 UTC 2018
On Sat, Mar 24, 2018 at 5:27 PM, Marek Olšák <maraeo at gmail.com> wrote:
> On Sat, Mar 24, 2018 at 1:36 PM, Connor Abbott <cwabbott0 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180324/e37ea96e/attachment.html>
More information about the mesa-dev
mailing list