summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2018-02-15 12:11:43 -0800
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit389450a2714b14a76cfb12474d7d6c478dea8596 (patch)
treebbef1a75e3e787adf118ab3982bd662d0e41e890 /src/gallium/drivers/svga
parentc174ee9f9dc8ae29df3218e6b293ad309e6a9a86 (diff)
svga: remove obsolete code to reemit gs binding
The svga_reemit_gs_bindings function is no longer needed. Remove it. Reviewed-by: Neha Bhende <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_state.h2
-rw-r--r--src/gallium/drivers/svga/svga_state_gs.c37
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)
{