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

Ilia Mirkin imirkin at alum.mit.edu
Sat Feb 22 12:12:09 PST 2014


On Fri, Feb 21, 2014 at 10:04 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> 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.
> +* ``PIPE_CAP_ACCELERATED``: Wheather the renderer is hardware accelerated.

Whether

> +* ``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)
> --
> 1.9.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list