From: Brian Paul Date: Fri, 9 Oct 2015 03:00:37 +0000 (-0600) Subject: svga: remove svga_tgsi_vgpu9_translate() call in GS path X-Git-Tag: upstream/17.1.0~15327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=615b37a0e260ad8bd108a3e57a2a6f0eb6284246;p=platform%2Fupstream%2Fmesa.git svga: remove svga_tgsi_vgpu9_translate() call in GS path We can never have geometry shaders with vgpu9. Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_state_gs.c b/src/gallium/drivers/svga/svga_state_gs.c index 7f75410..0b336ba 100644 --- a/src/gallium/drivers/svga/svga_state_gs.c +++ b/src/gallium/drivers/svga/svga_state_gs.c @@ -53,13 +53,9 @@ translate_geometry_program(struct svga_context *svga, const struct svga_geometry_shader *gs, const struct svga_compile_key *key) { - if (svga_have_vgpu10(svga)) { - return svga_tgsi_vgpu10_translate(svga, &gs->base, key, - PIPE_SHADER_GEOMETRY); - } - else { - return svga_tgsi_vgpu9_translate(&gs->base, key, PIPE_SHADER_GEOMETRY); - } + assert(svga_have_vgpu10(svga)); + return svga_tgsi_vgpu10_translate(svga, &gs->base, key, + PIPE_SHADER_GEOMETRY); }