<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Mar 24, 2018 at 5:27 PM, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Sat, Mar 24, 2018 at 1:36 PM, Connor Abbott <span dir="ltr"><<a href="mailto:cwabbott0@gmail.com" target="_blank">cwabbott0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If Gallium was being lazy and not<br>
specifying the bounds for internal shaders, that needs to be fixed for<br>
the HW to work properly.<br></blockquote><div><br></div></span><div>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".<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div></div></div></div></blockquote><div><br></div></div>Here is how to do it:<br><br></div><div class="gmail_extra">if (max_index != ~0u)<br></div><div class="gmail_extra">   // index bounds are valid;<br></div><div class="gmail_extra">else<br></div><div class="gmail_extra">   // scan the index buffer manually;<br><br></div><div class="gmail_extra">u_vbuf_get_minmax_index can be used for the scanning.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Marek<br></div></div>