From 31d4e6fbffb0c5bcaf92e2c2953f58dc072295d6 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 22 Mar 2015 07:21:00 +0100 Subject: [PATCH] gallium: introduce get_device_vendor() entrypoint for pipes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This will be needed by Clover to return the correct information to CL_DEVICE_VENDOR info queries. Signed-off-by: Giuseppe Bilotta Reviewed-by: Michel Dänzer --- 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 26cc9ffc6f7..4386bcfb5ac 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -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 diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h index 4018f8a436a..21e7dd35ec0 100644 --- a/src/gallium/include/pipe/p_screen.h +++ b/src/gallium/include/pipe/p_screen.h @@ -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 -- 2.30.2