r300g: don't hang GPU on misbehaving apps
This commit is contained in:
parent
3445f47697
commit
1ef0341ea7
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,9 @@ boolean r300_draw_range_elements(struct pipe_context* pipe,
|
|||
{
|
||||
struct r300_context* r300 = r300_context(pipe);
|
||||
|
||||
if (!u_trim_pipe_prim(mode, &count))
|
||||
return false;
|
||||
|
||||
r300_update_derived_state(r300);
|
||||
|
||||
setup_vertex_buffers(r300);
|
||||
|
|
@ -147,6 +150,9 @@ boolean r300_draw_arrays(struct pipe_context* pipe, unsigned mode,
|
|||
{
|
||||
struct r300_context* r300 = r300_context(pipe);
|
||||
|
||||
if (!u_trim_pipe_prim(mode, &count))
|
||||
return false;
|
||||
|
||||
r300_update_derived_state(r300);
|
||||
|
||||
setup_vertex_buffers(r300);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue