softpipe: Report some sane values for constant buffer CAP queries.
authorMichal Krol <michal@vmware.com>
Mon, 25 Jan 2010 13:31:32 +0000 (14:31 +0100)
committerMichal Krol <michal@vmware.com>
Thu, 28 Jan 2010 13:08:12 +0000 (14:08 +0100)
src/gallium/drivers/softpipe/sp_screen.c

index bd3532de4f445f1b90ad4581c5a3c11619e5714a..69f40dc7b64cdf8b50808a01d80cbb20786522db 100644 (file)
@@ -91,6 +91,10 @@ softpipe_get_param(struct pipe_screen *screen, int param)
       return 1;
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
       return 1;
+   case PIPE_CAP_MAX_CONST_BUFFERS:
+      return PIPE_MAX_CONSTANT_BUFFERS;
+   case PIPE_CAP_MAX_CONST_BUFFER_SIZE:
+      return 4096 * 4 * sizeof(float);
    default:
       return 0;
    }