[PATCH 01/02] dri2proto: Add DRI2GetParam request

Eric Anholt eric at anholt.net
Mon May 14 14:12:07 PDT 2012


On Thu, 10 May 2012 00:04:36 -0700, Chad Versace <chad.versace at linux.intel.com> wrote:
>  /*
>   * Events
> @@ -330,4 +331,32 @@ typedef struct {
>  } xDRI2InvalidateBuffers;
>  #define sz_xDRI2InvalidateBuffers 32
>  
> +typedef struct {
> +    CARD8   reqType;
> +    CARD8   dri2ReqType;
> +    CARD16  length B16;
> +    CARD32  drawable B32;
> +    CARD32  namespace_ B32;
> +    CARD32  param_hi B32;
> +    CARD32  param_lo B32;
> +} xDRI2GetParamReq;
> +#define sz_xDRI2GetParamReq 20

64 bits of param enums?  I'm going to go ahead and guess that we've
moved to a new protocol or driver implementation before we run out of 32 bits.

> +┌───
> +    DRI2GetParam
> +	drawable: DRAWABLE
> +	namespace: DRI2PARAM_NAMESPACE
> +	param: CARD64
> +      ▶
> +	is_param_recognized: BOOL
> +	unused: 3 bytes
> +	value: CARD64
> +└───
> +	Errors: Drawable, Value
> +
> +        Get the value of a parameter. The parameter's value is looked up in
> +	the 'namespace' on the screen associated with the 'drawable'.
> +
> +        Possible values of 'param_is_recognized' are true (1) and
> +	false(0).  If false, then 'value' is undefined.

s/param_is_recognized/is_param_recognized/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120514/11922d21/attachment.pgp>


More information about the xorg-devel mailing list