gallium: introduce get_device_vendor() entrypoint for pipes
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 22 Mar 2015 06:21:00 +0000 (07:21 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 13:25:34 +0000 (13:25 +0000)
This will be needed by Clover to return the correct information
to CL_DEVICE_VENDOR info queries.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_screen.h

index 26cc9ffc6f70ae0a054efce3d2d34172778c24f8..4386bcfb5accb941e6a4b16c750ca56275b747b5 100644 (file)
@@ -462,6 +462,12 @@ get_vendor
 
 Returns the screen vendor.
 
+get_device_vendor
+^^^^^^^^^^^^^^^^^
+
+Returns the actual vendor of the device driving the screen
+(as opposed to the driver vendor).
+
 .. _get_param:
 
 get_param
index 4018f8a436aecdec22402c146f07604f011fba66..21e7dd35ec0bf967edbf07b74124a7ddca7779a8 100644 (file)
@@ -71,6 +71,14 @@ struct pipe_screen {
 
    const char *(*get_vendor)( struct pipe_screen * );
 
+   /**
+    * Returns the device vendor.
+    *
+    * The returned value should return the actual device vendor/manufacturer,
+    * rather than a potentially generic driver string.
+    */
+   const char *(*get_device_vendor)( struct pipe_screen * );
+
    /**
     * Query an integer-valued capability/parameter/limit
     * \param param  one of PIPE_CAP_x