mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
i965g: updates for draw retval
This commit is contained in:
parent
7bd7e2da75
commit
150108024d
1 changed files with 9 additions and 11 deletions
|
|
@ -176,7 +176,7 @@ try_draw_range_elements(struct brw_context *brw,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static boolean
|
static void
|
||||||
brw_draw_range_elements(struct pipe_context *pipe,
|
brw_draw_range_elements(struct pipe_context *pipe,
|
||||||
struct pipe_buffer *index_buffer,
|
struct pipe_buffer *index_buffer,
|
||||||
unsigned index_size,
|
unsigned index_size,
|
||||||
|
|
@ -228,29 +228,27 @@ brw_draw_range_elements(struct pipe_context *pipe,
|
||||||
ret = try_draw_range_elements(brw, index_buffer, hw_prim, start, count );
|
ret = try_draw_range_elements(brw, index_buffer, hw_prim, start, count );
|
||||||
assert(ret == 0);
|
assert(ret == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static void
|
||||||
brw_draw_elements(struct pipe_context *pipe,
|
brw_draw_elements(struct pipe_context *pipe,
|
||||||
struct pipe_buffer *index_buffer,
|
struct pipe_buffer *index_buffer,
|
||||||
unsigned index_size,
|
unsigned index_size,
|
||||||
unsigned mode,
|
unsigned mode,
|
||||||
unsigned start, unsigned count)
|
unsigned start, unsigned count)
|
||||||
{
|
{
|
||||||
return brw_draw_range_elements( pipe, index_buffer,
|
brw_draw_range_elements( pipe, index_buffer,
|
||||||
index_size,
|
index_size,
|
||||||
0, 0xffffffff,
|
0, 0xffffffff,
|
||||||
mode,
|
mode,
|
||||||
start, count );
|
start, count );
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean
|
static void
|
||||||
brw_draw_arrays(struct pipe_context *pipe, unsigned mode,
|
brw_draw_arrays(struct pipe_context *pipe, unsigned mode,
|
||||||
unsigned start, unsigned count)
|
unsigned start, unsigned count)
|
||||||
{
|
{
|
||||||
return brw_draw_elements(pipe, NULL, 0, mode, start, count);
|
brw_draw_elements(pipe, NULL, 0, mode, start, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue