summaryrefslogtreecommitdiff
path: root/dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r--dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c b/dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c
index e7c331967..324cfa433 100644
--- a/dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c
+++ b/dist/Mesa/src/gallium/drivers/softpipe/sp_screen.c
@@ -30,6 +30,7 @@
#include "util/u_format.h"
#include "util/u_format_s3tc.h"
#include "util/u_video.h"
+#include "os/os_misc.h"
#include "os/os_time.h"
#include "pipe/p_defines.h"
#include "pipe/p_screen.h"
@@ -196,6 +197,24 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_MIN_TEXTURE_GATHER_OFFSET:
case PIPE_CAP_MAX_TEXTURE_GATHER_OFFSET:
return 0;
+
+ case PIPE_CAP_VENDOR_ID:
+ return 0xFFFFFFFF;
+ case PIPE_CAP_DEVICE_ID:
+ return 0xFFFFFFFF;
+ case PIPE_CAP_ACCELERATED:
+ return 0;
+ case PIPE_CAP_VIDEO_MEMORY: {
+ /* XXX: Do we want to return the full amount fo system memory ? */
+ uint64_t system_memory;
+
+ if (!os_get_total_physical_memory(&system_memory))
+ return 0;
+
+ return (int)(system_memory >> 20);
+ }
+ case PIPE_CAP_UMA:
+ return 0;
}
/* should only get here on unhandled cases */
debug_printf("Unexpected PIPE_CAP %d query\n", param);