[Mesa-dev] [PATCH 17/25] gallium: add GLX_MESA_query_renderer caps

Roland Scheidegger sroland at vmware.com
Sat Feb 22 04:09:03 PST 2014


Am 22.02.2014 04:04, schrieb Emil Velikov:
> Namely vendor/device id, accelerated and UMA, which will be used to describe
> the underlying renderer.
> 
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/gallium/docs/source/screen.rst   | 8 ++++++++
>  src/gallium/include/pipe/p_defines.h | 5 +++++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
> index 7b72133..a2f21cd 100644
> --- a/src/gallium/docs/source/screen.rst
> +++ b/src/gallium/docs/source/screen.rst
> @@ -188,6 +188,14 @@ The integer capabilities:
>    version supported.
>  * ``PIPE_CAP_MAX_GL_ES1_VERSION``: The maximum OpenGL ES1 version supported.
>  * ``PIPE_CAP_MAX_GL_ES2_VERSION``: The maximum OpenGL ES2 version supported.
> +* ``PIPE_CAP_VENDOR_ID``: The vendor ID of the underlying hardware. If it's
> +  not available one should return 0xFFFFFFFF.
> +* ``PIPE_CAP_DEVICE_ID``: The device ID (PCI ID) of the underlying hardware.
> +  0xFFFFFFFF if no available.
no->not.


> +* ``PIPE_CAP_ACCELERATED``: Wheather the renderer is hardware accelerated.
> +* ``PIPE_CAP_VIDEO_MEMORY``: The amount of video memory in megabytes.
> +* ``PIPE_CAP_UMA``: If the device has a unified memory architecture or on-card
> +  memory and GART.
>  
>  
>  .. _pipe_capf:
> diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
> index 5c27f9c..e06d0b4 100644
> --- a/src/gallium/include/pipe/p_defines.h
> +++ b/src/gallium/include/pipe/p_defines.h
> @@ -527,6 +527,11 @@ enum pipe_cap {
>     PIPE_CAP_MAX_GL_COMPAT_VERSION = 91,
>     PIPE_CAP_MAX_GL_ES1_VERSION = 92,
>     PIPE_CAP_MAX_GL_ES2_VERSION = 93,
> +   PIPE_CAP_VENDOR_ID = 94,
> +   PIPE_CAP_DEVICE_ID = 95,
> +   PIPE_CAP_ACCELERATED = 96,
> +   PIPE_CAP_VIDEO_MEMORY = 97,
> +   PIPE_CAP_UMA = 98,
>  };
>  
>  #define PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 (1 << 0)
> 


More information about the mesa-dev mailing list