Browse Source

gallium: introduce get_device_vendor() entrypoint for pipes

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>
tags/10.6-branchpoint
Giuseppe Bilotta 10 years ago
parent
commit
31d4e6fbff
2 changed files with 14 additions and 0 deletions
  1. 6
    0
      src/gallium/docs/source/screen.rst
  2. 8
    0
      src/gallium/include/pipe/p_screen.h

+ 6
- 0
src/gallium/docs/source/screen.rst View 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

+ 8
- 0
src/gallium/include/pipe/p_screen.h View 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

Loading…
Cancel
Save