r300g: don't hang GPU on misbehaving apps
This commit is contained in:
committed by
Corbin Simpson
parent
3445f47697
commit
1ef0341ea7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user