diff options
author | José Fonseca <[email protected]> | 2011-03-16 15:43:00 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-03-16 15:43:00 +0000 |
commit | 74651f5738032466fceede8b8f0c3ce29a770551 (patch) | |
tree | 06b7f08959932f51cc90ebcae8d72b2884dd4e0e /src/gallium/drivers/svga/svga_pipe_draw.c | |
parent | 8767fe2437094f33db140a6b92f25116de4fc371 (diff) |
svga: Hardcode SVGA_COMBINE_USERBUFFERS to 1.
The code no longer supports otherwise -- it relies on buffers being
uploaded via u_upload_mgr -- so make this clear.
Also, there's no need to flush after draws from user buffers, given all
user content should have been copied by then.
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_draw.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_draw.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_draw.c b/src/gallium/drivers/svga/svga_pipe_draw.c index fda5c28433c..2093bcae101 100644 --- a/src/gallium/drivers/svga/svga_pipe_draw.c +++ b/src/gallium/drivers/svga/svga_pipe_draw.c @@ -73,12 +73,6 @@ retry_draw_range_elements( struct svga_context *svga, if (ret) goto retry; - if (svga->curr.any_user_vertex_buffers) { - ret = svga_hwtnl_flush( svga->hwtnl ); - if (ret) - goto retry; - } - return PIPE_OK; retry: @@ -122,12 +116,6 @@ retry_draw_arrays( struct svga_context *svga, if (ret) goto retry; - if (svga->curr.any_user_vertex_buffers) { - ret = svga_hwtnl_flush( svga->hwtnl ); - if (ret) - goto retry; - } - return 0; retry: |