projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb473c4
)
svga: remove svga_tgsi_vgpu9_translate() call in GS path
author
Brian Paul
<brianp@vmware.com>
Fri, 9 Oct 2015 03:00:37 +0000
(21:00 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_state_gs.c
b/src/gallium/drivers/svga/svga_state_gs.c
index
7f75410
..
0b336ba
100644
(file)
--- 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);
}