summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-24 14:35:40 -0600
committerBrian <[email protected]>2007-10-24 14:35:40 -0600
commit40a0b053f78acd0a08f6876518b8e9301480431f (patch)
tree6ca70655441fd94a8518880d6d1da19eee7634a6 /src/mesa/pipe/softpipe
parent11ce6244a79106c592364b30434b6ddade3fd6bb (diff)
Revert "Undo indexOffset change (I think, git???)"
This reverts commit 11ce6244a79106c592364b30434b6ddade3fd6bb.
Diffstat (limited to 'src/mesa/pipe/softpipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_draw_arrays.c7
-rw-r--r--src/mesa/pipe/softpipe/sp_state.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/pipe/softpipe/sp_draw_arrays.c b/src/mesa/pipe/softpipe/sp_draw_arrays.c
index d5cd6beae89..64a4fbe333e 100644
--- a/src/mesa/pipe/softpipe/sp_draw_arrays.c
+++ b/src/mesa/pipe/softpipe/sp_draw_arrays.c
@@ -75,7 +75,7 @@ boolean
softpipe_draw_arrays(struct pipe_context *pipe, unsigned mode,
unsigned start, unsigned count)
{
- return softpipe_draw_elements(pipe, NULL, 0, 0, mode, start, count);
+ return softpipe_draw_elements(pipe, NULL, 0, mode, start, count);
}
@@ -90,7 +90,7 @@ softpipe_draw_arrays(struct pipe_context *pipe, unsigned mode,
boolean
softpipe_draw_elements(struct pipe_context *pipe,
struct pipe_buffer_handle *indexBuffer,
- unsigned indexSize, unsigned indexOffset,
+ unsigned indexSize,
unsigned mode, unsigned start, unsigned count)
{
struct softpipe_context *sp = softpipe_context(pipe);
@@ -130,10 +130,9 @@ softpipe_draw_elements(struct pipe_context *pipe,
}
/* Map index buffer, if present */
if (indexBuffer) {
- ubyte *mapped_indexes
+ void *mapped_indexes
= pipe->winsys->buffer_map(pipe->winsys, indexBuffer,
PIPE_BUFFER_FLAG_READ);
- mapped_indexes += indexOffset;
draw_set_mapped_element_buffer(draw, indexSize, mapped_indexes);
}
else {
diff --git a/src/mesa/pipe/softpipe/sp_state.h b/src/mesa/pipe/softpipe/sp_state.h
index 8747f34cdd9..c194f0ea0db 100644
--- a/src/mesa/pipe/softpipe/sp_state.h
+++ b/src/mesa/pipe/softpipe/sp_state.h
@@ -131,7 +131,7 @@ boolean softpipe_draw_arrays(struct pipe_context *pipe, unsigned mode,
boolean softpipe_draw_elements(struct pipe_context *pipe,
struct pipe_buffer_handle *indexBuffer,
- unsigned indexSize, unsigned indexOffset,
+ unsigned indexSize,
unsigned mode, unsigned start, unsigned count);