summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-08-14 21:36:07 +0100
committerEmil Velikov <[email protected]>2014-08-15 17:42:47 +0100
commit0b67d5d4ce0a1b4305733461c41a99189e1d1472 (patch)
treee595935486b91a69113054b3b814f556e3c65de6 /src/gallium/drivers/vc4
parentde0144375330a6645367fb96cd18fa6da1db9fdc (diff)
gallium/vc4: handle query_renderer caps
Cc: Eric Anholt <[email protected]> Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_screen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 7e596139224..da68f72c73b 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -201,6 +201,18 @@ vc4_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
return 64;
+ case PIPE_CAP_VENDOR_ID:
+ return 0x14E4;
+ case PIPE_CAP_DEVICE_ID:
+ return 0xFFFFFFFF;
+ case PIPE_CAP_ACCELERATED:
+ return 1;
+ case PIPE_CAP_VIDEO_MEMORY:
+ fprintf(stderr, "FINISHME: The value returned is incorrect\n");
+ return 10;
+ case PIPE_CAP_UMA:
+ return 1;
+
default:
fprintf(stderr, "unknown param %d\n", param);
return 0;