llvmpipe: disable native integers
authorDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 19:48:00 +0000 (19:48 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 19:48:56 +0000 (19:48 +0000)
llvmpipe shouldn't be reporting native integer support.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/llvmpipe/lp_screen.c

index 5798a19e5f7fd724eadb8ae67be9f2df57092f11..fd6e439f6098b5f74c927ddd9c589486b121fd15 100644 (file)
@@ -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);
       }