diff options
-rw-r--r-- | src/gallium/drivers/svga/svga_state.h | 2 | ||||
-rw-r--r-- | src/gallium/drivers/svga/svga_state_gs.c | 37 |
2 files changed, 0 insertions, 39 deletions
diff --git a/src/gallium/drivers/svga/svga_state.h b/src/gallium/drivers/svga/svga_state.h index d75617860e6..963a27941ba 100644 --- a/src/gallium/drivers/svga/svga_state.h +++ b/src/gallium/drivers/svga/svga_state.h @@ -105,6 +105,4 @@ enum pipe_error svga_reemit_vs_bindings(struct svga_context *svga); enum pipe_error svga_reemit_fs_bindings(struct svga_context *svga); -enum pipe_error svga_reemit_gs_bindings(struct svga_context *svga); - #endif diff --git a/src/gallium/drivers/svga/svga_state_gs.c b/src/gallium/drivers/svga/svga_state_gs.c index 38d85f0325c..b87209312a9 100644 --- a/src/gallium/drivers/svga/svga_state_gs.c +++ b/src/gallium/drivers/svga/svga_state_gs.c @@ -129,43 +129,6 @@ make_gs_key(struct svga_context *svga, struct svga_compile_key *key) } -/** - * svga_reemit_gs_bindings - Reemit the geometry shader bindings - */ -enum pipe_error -svga_reemit_gs_bindings(struct svga_context *svga) -{ - enum pipe_error ret; - struct svga_winsys_gb_shader *gbshader = NULL; - SVGA3dShaderId shaderId = SVGA3D_INVALID_ID; - - assert(svga->rebind.flags.gs); - assert(svga_have_gb_objects(svga)); - - /* Geometry Shader is only supported in vgpu10 */ - assert(svga_have_vgpu10(svga)); - - if (svga->state.hw_draw.gs) { - gbshader = svga->state.hw_draw.gs->gb_shader; - shaderId = svga->state.hw_draw.gs->id; - } - - if (!svga_need_to_rebind_resources(svga)) { - ret = svga->swc->resource_rebind(svga->swc, NULL, gbshader, - SVGA_RELOC_READ); - } - else { - ret = SVGA3D_vgpu10_SetShader(svga->swc, SVGA3D_SHADERTYPE_GS, - gbshader, shaderId); - } - - if (ret != PIPE_OK) - return ret; - - svga->rebind.flags.gs = FALSE; - return PIPE_OK; -} - static enum pipe_error emit_hw_gs(struct svga_context *svga, unsigned dirty) { |