[Mesa-dev] [PATCH 18/25] gallium/freedreno: handle query_renderer caps
Emil Velikov
emil.l.velikov at gmail.com
Fri Feb 21 19:04:08 PST 2014
Provide the real vendor and hardcode the device id as 0xffffffff
as the devices currently using freedreno are non-pci. The device
features UMA.
Cc: Rob Clark <robclark at freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
Hi Rob,
Can you please take a look at the memory side of this patch. I'm
pretty sure I've got it wrong.
Cheers
-Emil
src/gallium/drivers/freedreno/freedreno_screen.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 68f7f13..8c8e18b 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -143,6 +143,8 @@ tables for things that differ if the delta is not too much..
static int
fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
{
+ struct fd_screen *screen = fd_screen(pscreen);
+
/* this is probably not totally correct.. but it's a start: */
switch (param) {
/* Supported features (boolean caps). */
@@ -256,6 +258,18 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_MAX_GL_ES2_VERSION:
return 20;
+ case PIPE_CAP_VENDOR_ID:
+ return 0x5143;
+ case PIPE_CAP_DEVICE_ID:
+ return 0xFFFFFFFF;
+ case PIPE_CAP_ACCELERATED:
+ return 1;
+ case PIPE_CAP_VIDEO_MEMORY:
+ DBG("FINISHME: The value returned is incorrect\n");
+ return 10;
+ case PIPE_CAP_UMA:
+ return 1;
+
default:
DBG("unknown param %d", param);
return 0;
--
1.9.0
More information about the mesa-dev
mailing list