[Mesa-dev] [PATCH 2/4] Introduce get_device_vendor() entrypoint for pipes

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Fri Mar 6 23:56:56 PST 2015


This will be needed by Clover to return the correct information
to CL_DEVICE_VENDOR info queries.
---
 src/gallium/docs/source/screen.rst  | 6 ++++++
 src/gallium/include/pipe/p_screen.h | 8 ++++++++
 2 files changed, 14 insertions(+)

diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index e0fd1a2..6c717f4 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -460,6 +460,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
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h
index 4018f8a..21e7dd3 100644
--- a/src/gallium/include/pipe/p_screen.h
+++ b/src/gallium/include/pipe/p_screen.h
@@ -72,6 +72,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
     */
-- 
2.1.2.766.gaa23a90



More information about the mesa-dev mailing list