diff options
author | Brian Paul <brianp@vmware.com> | 2015-10-08 21:00:37 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2015-10-16 11:43:28 -0600 |
commit | 615b37a0e260ad8bd108a3e57a2a6f0eb6284246 (patch) | |
tree | 9a713d75fc54df51a57cabfcc6e179cf7a50fe7b /src/gallium/drivers/svga | |
parent | cb473c46feb17d652f69836bf0d8843803fe77cd (diff) |
svga: remove svga_tgsi_vgpu9_translate() call in GS path
We can never have geometry shaders with vgpu9.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_gs.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gallium/drivers/svga/svga_state_gs.c b/src/gallium/drivers/svga/svga_state_gs.c index 7f75410fb57..0b336baee86 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); } |