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 7f75410fb57d3eff7d7b9b218e49653806370367..0b336baee868265fd05a58f3325ed67c01708c7c 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);
 }