svga: remove obsolete code to reemit gs binding

The svga_reemit_gs_bindings function is no longer needed. Remove it.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Charmaine Lee 2018-02-15 12:11:43 -08:00 committed by Brian Paul
parent c174ee9f9d
commit 389450a271
2 changed files with 0 additions and 39 deletions

View file

@ -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

View file

@ -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)
{