projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fd39be
)
r300g: fix rendering with a non-zero index bias in draw_elements_immediate
author
Marek Olšák
<maraeo@gmail.com>
Mon, 3 Oct 2011 19:45:15 +0000
(21:45 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 4 Oct 2011 15:45:53 +0000
(17:45 +0200)
NOTE: This is a candidate for the stable branches.
src/gallium/drivers/r300/r300_render.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_render.c
b/src/gallium/drivers/r300/r300_render.c
index dad6d2fbf5f35e940f371427aaf3e443fde0be59..a9a9ae69e15ba348555b3103231c1951e6951246 100644
(file)
--- a/
src/gallium/drivers/r300/r300_render.c
+++ b/
src/gallium/drivers/r300/r300_render.c
@@
-521,7
+521,9
@@
static void r300_draw_elements_immediate(struct r300_context *r300,
PREP_INDEXED, NULL, 2+count_dwords, 0, info->index_bias, -1))
return;
- r300_emit_draw_init(r300, info->mode, info->min_index, info->max_index);
+ r300_emit_draw_init(r300, info->mode,
+ info->min_index + info->index_bias,
+ info->max_index + info->index_bias);
BEGIN_CS(2 + count_dwords);
OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, count_dwords);