summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-10-22 16:47:38 -0600
committerBrian Paul <[email protected]>2013-10-24 10:45:47 -0600
commit8d7b913e4e089cc8b0b800cbcf80737d0be0a0f7 (patch)
tree6ed75cd73525ce7ac092acf96fa6ab6eddc94495 /src/gallium/drivers/svga/svga_context.c
parent2f6a31508505744e5f1b3e4c35c2a1b305a813a8 (diff)
svga: remove user-space vertex/index buffer code
The gallium vbuf module, which we've been using for some time now, takes care of uploading user-space vertex/index data into real buffers. The upload code in the svga driver was unused. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r--src/gallium/drivers/svga/svga_context.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 7147d5a8f87..83afe796f4b 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -30,7 +30,6 @@
#include "pipe/p_screen.h"
#include "util/u_memory.h"
#include "util/u_bitmask.h"
-#include "util/u_upload_mgr.h"
#include "svga_context.h"
#include "svga_screen.h"
@@ -69,9 +68,6 @@ static void svga_destroy( struct pipe_context *pipe )
svga_destroy_swtnl( svga );
- u_upload_destroy( svga->upload_vb );
- u_upload_destroy( svga->upload_ib );
-
util_bitmask_destroy( svga->vs_bm );
util_bitmask_destroy( svga->fs_bm );
@@ -136,23 +132,7 @@ struct pipe_context *svga_context_create( struct pipe_screen *screen,
if (svga->vs_bm == NULL)
goto no_vs_bm;
- svga->upload_ib = u_upload_create( &svga->pipe,
- 32 * 1024,
- 16,
- PIPE_BIND_INDEX_BUFFER );
- if (svga->upload_ib == NULL)
- goto no_upload_ib;
-
- svga->upload_vb = u_upload_create( &svga->pipe,
- 128 * 1024,
- 16,
- PIPE_BIND_VERTEX_BUFFER );
- if (svga->upload_vb == NULL)
- goto no_upload_vb;
-
- svga->hwtnl = svga_hwtnl_create( svga,
- svga->upload_ib,
- svga->swc );
+ svga->hwtnl = svga_hwtnl_create(svga);
if (svga->hwtnl == NULL)
goto no_hwtnl;
@@ -184,10 +164,6 @@ no_state:
no_swtnl:
svga_hwtnl_destroy( svga->hwtnl );
no_hwtnl:
- u_upload_destroy( svga->upload_vb );
-no_upload_vb:
- u_upload_destroy( svga->upload_ib );
-no_upload_ib:
util_bitmask_destroy( svga->vs_bm );
no_vs_bm:
util_bitmask_destroy( svga->fs_bm );
@@ -208,14 +184,6 @@ void svga_context_flush( struct svga_context *svga,
svga->curr.nr_fbs = 0;
- /* Flush the upload managers to ensure recycling of upload buffers
- * without throttling. This should really be conditioned on
- * pipe_buffer_map_range not supporting PIPE_TRANSFER_UNSYNCHRONIZED.
- */
-
- u_upload_flush(svga->upload_vb);
- u_upload_flush(svga->upload_ib);
-
/* Ensure that texture dma uploads are processed
* before submitting commands.
*/