summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-01-25 14:31:32 +0100
committerMichal Krol <michal@vmware.com>2010-01-28 14:08:12 +0100
commit3320acb67dfa9330a80ab38e0c164f5d9c0a074a (patch)
tree7e9a3ca3d1ecc9f7c71a2b89d417fc169e3e1ca1 /src/gallium/drivers
parent25123e0c8820d641a36e0717bddc934718bc05ee (diff)
softpipe: Report some sane values for constant buffer CAP queries.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/softpipe/sp_screen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index bd3532de4f..69f40dc7b6 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -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;
}