svga: minor fix-ups in svga_get_shader_param()
authorBrian Paul <brianp@vmware.com>
Wed, 16 Oct 2013 14:26:42 +0000 (08:26 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Oct 2013 14:26:45 +0000 (08:26 -0600)
Fix debug error message.  Add switch case for PIPE_SHADER_COMPUTE.
Trivial.

src/gallium/drivers/svga/svga_screen.c

index a1108c6283764e3b47e668f5698071901d432064..93d16124c626680a4d645b709b7d081df0b2109c 100644 (file)
@@ -334,7 +334,7 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
       case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
          return 16;
       default:
-         debug_printf("Unexpected vertex shader query %u\n", param);
+         debug_printf("Unexpected fragment shader query %u\n", param);
          return 0;
       }
       break;
@@ -389,7 +389,8 @@ static int svga_get_shader_param(struct pipe_screen *screen, unsigned shader, en
       }
       break;
    case PIPE_SHADER_GEOMETRY:
-      /* no support for geometry shaders at this time */
+   case PIPE_SHADER_COMPUTE:
+      /* no support for geometry or compute shaders at this time */
       return 0;
    default:
       debug_printf("Unexpected shader type (%u) query\n", shader);