summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_screen.cpp
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-03-02 16:41:02 -0600
committerTim Rowley <[email protected]>2017-03-05 07:33:49 -0600
commitf1d728411726fd0bc5baf9746e838f609900836e (patch)
tree14b54416bb159b66a71624042b66ae75faba318e /src/gallium/drivers/swr/swr_screen.cpp
parent08a82363ba7c281a1b3d7f6dbe6946860ee68e38 (diff)
swr: implement geometry shaders
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_screen.cpp')
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index f41020b8e80..0488a5b7683 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -347,10 +347,12 @@ swr_get_shader_param(struct pipe_screen *screen,
unsigned shader,
enum pipe_shader_cap param)
{
- if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_FRAGMENT)
+ if (shader == PIPE_SHADER_VERTEX ||
+ shader == PIPE_SHADER_FRAGMENT ||
+ shader == PIPE_SHADER_GEOMETRY)
return gallivm_get_shader_param(param);
- // Todo: geometry, tesselation, compute
+ // Todo: tesselation, compute
return 0;
}