diff options
author | Dave Airlie <[email protected]> | 2012-01-11 19:48:00 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-11 19:48:56 +0000 |
commit | 2d80cad16e55b6eb11084045015a08fff43a7485 (patch) | |
tree | 345a5bfb4adcc0043dcd05c1a7cd5097b9b48b9c | |
parent | 0a20051e6da99e91b7bf589ea457c77a8b618f26 (diff) |
llvmpipe: disable native integers
llvmpipe shouldn't be reporting native integer support.
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 5798a19e5f7..fd6e439f609 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -168,7 +168,12 @@ llvmpipe_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe switch(shader) { case PIPE_SHADER_FRAGMENT: - return tgsi_exec_get_shader_param(param); + switch (param) { + case PIPE_SHADER_CAP_INTEGERS: + return 0; + default: + return tgsi_exec_get_shader_param(param); + } case PIPE_SHADER_VERTEX: case PIPE_SHADER_GEOMETRY: switch (param) { @@ -181,6 +186,8 @@ llvmpipe_get_shader_param(struct pipe_screen *screen, unsigned shader, enum pipe return PIPE_MAX_VERTEX_SAMPLERS; else return 0; + case PIPE_SHADER_CAP_INTEGERS: + return 0; default: return draw_get_shader_param(shader, param); } |