diff options
author | Keith Whitwell <[email protected]> | 2007-02-01 14:21:14 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2007-02-01 14:21:14 +0000 |
commit | 5368ae5ec329ddad5963d55b17cd4eccbc83d32f (patch) | |
tree | dbb0e7d229bbe23e6525b44aba5855c511209f0e /src/mesa/drivers | |
parent | 605d428d20819ac3f46aaeb4a66707febec7ded2 (diff) |
Correct usage/meaning of max_index parameter.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_metaops.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 6968d745c1c..803a524324e 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -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 */ + if (0) + _mesa_printf("%s %d..%d\n", __FUNCTION__, min_index, max_index); while (tmp) { GLuint i = ffsll(tmp)-1; @@ -418,7 +420,7 @@ GLboolean brw_upload_vertices( struct brw_context *brw, input->index = i; 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 (i == 0) { diff --git a/src/mesa/drivers/dri/i965/brw_metaops.c b/src/mesa/drivers/dri/i965/brw_metaops.c index 1728fc8f568..1579762b6d1 100644 --- a/src/mesa/drivers/dri/i965/brw_metaops.c +++ b/src/mesa/drivers/dri/i965/brw_metaops.c @@ -480,7 +480,7 @@ static void meta_draw_quad(struct intel_context *intel, prim, 1, NULL, 0, - 4 ); + 3 ); } |