mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
Correct usage/meaning of max_index parameter.
This commit is contained in:
parent
605d428d20
commit
5368ae5ec3
2 changed files with 4 additions and 2 deletions
|
|
@ -408,6 +408,8 @@ GLboolean brw_upload_vertices( struct brw_context *brw,
|
||||||
|
|
||||||
/* First build an array of pointers to ve's in vb.inputs_read
|
/* First build an array of pointers to ve's in vb.inputs_read
|
||||||
*/
|
*/
|
||||||
|
if (0)
|
||||||
|
_mesa_printf("%s %d..%d\n", __FUNCTION__, min_index, max_index);
|
||||||
|
|
||||||
while (tmp) {
|
while (tmp) {
|
||||||
GLuint i = ffsll(tmp)-1;
|
GLuint i = ffsll(tmp)-1;
|
||||||
|
|
@ -418,7 +420,7 @@ GLboolean brw_upload_vertices( struct brw_context *brw,
|
||||||
|
|
||||||
input->index = i;
|
input->index = i;
|
||||||
input->element_size = get_size(input->glarray->Type) * input->glarray->Size;
|
input->element_size = get_size(input->glarray->Type) * input->glarray->Size;
|
||||||
input->count = input->glarray->StrideB ? max_index - min_index : 1;
|
input->count = input->glarray->StrideB ? max_index + 1 - min_index : 1;
|
||||||
|
|
||||||
if (!input->glarray->BufferObj->Name) {
|
if (!input->glarray->BufferObj->Name) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
|
|
|
||||||
|
|
@ -480,7 +480,7 @@ static void meta_draw_quad(struct intel_context *intel,
|
||||||
prim, 1,
|
prim, 1,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
4 );
|
3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue