Mesa (gallium-multiple-constant-buffers): softpipe: Report some sane values for constant buffer CAP queries.
MichaŠKról
michal at kemper.freedesktop.org
Mon Jan 25 13:55:48 UTC 2010
Module: Mesa
Branch: gallium-multiple-constant-buffers
Commit: 4e014d9c11d11ad87e10f8847253229566bed4d7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e014d9c11d11ad87e10f8847253229566bed4d7
Author: Michal Krol <michal at vmware.com>
Date: Mon Jan 25 14:31:32 2010 +0100
softpipe: Report some sane values for constant buffer CAP queries.
---
src/gallium/drivers/softpipe/sp_screen.c | 4 ++++
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 bd3532d..69f40dc 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;
}
More information about the mesa-commit
mailing list