gallium/freedreno: handle query_renderer caps
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 14 Aug 2014 18:42:39 +0000 (19:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 15 Aug 2014 16:42:43 +0000 (17:42 +0100)
Provide the real vendor and and hardcode the device id as
0xffffffff as the devices currently using freedreno are non-pci.
The device features UMA.

Cc: Rob Clark <robclark@freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_screen.c

index b156d8b3660146632762beaf05d2df47f6b42ea5..d797bb438585f071147d09a27e0420bdf47455ba 100644 (file)
@@ -265,6 +265,18 @@ fd_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 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;