svga: remove svga_tgsi_vgpu9_translate() call in GS path
authorBrian Paul <brianp@vmware.com>
Fri, 9 Oct 2015 03:00:37 +0000 (21:00 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 17:43:28 +0000 (11:43 -0600)
We can never have geometry shaders with vgpu9.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_gs.c

index 7f75410..0b336ba 100644 (file)
@@ -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);
 }