r300g/swtcl: don't expose shader subroutine support
authorMarek Olšák <maraeo@gmail.com>
Tue, 3 Apr 2012 21:00:18 +0000 (23:00 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 4 Apr 2012 02:28:41 +0000 (04:28 +0200)
RET in the main function doesn't work. This should be fixed in Draw, but meh.

src/gallium/drivers/r300/r300_screen.c

index 1a8e789fdc3c580e43b6566e0e315b8d6224b7b0..5873d9a787215d21484192759aa6b05f22eebc45 100644 (file)
@@ -217,6 +217,7 @@ static int r300_get_shader_param(struct pipe_screen *pscreen, unsigned shader, e
         switch (param)
         {
         case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
+        case PIPE_SHADER_CAP_SUBROUTINES:
             return 0;
         default:;
         }