From: Charmaine Lee Date: Thu, 15 Feb 2018 20:11:43 +0000 (-0800) Subject: svga: remove obsolete code to reemit gs binding X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=389450a2714b14a76cfb12474d7d6c478dea8596;p=mesa.git svga: remove obsolete code to reemit gs binding The svga_reemit_gs_bindings function is no longer needed. Remove it. Reviewed-by: Neha Bhende Reviewed-by: Brian Paul --- 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) {