[PATCH 2/2] Add support for HW_SKIP_CONSOLE

Aaron Plattner aplattner at nvidia.com
Tue Nov 17 13:22:12 PST 2009


I guess it doesn't hurt to set that bit on servers that don't support
HW_SKIP_CONSOLE.

Both patches Acked-by: Aaron Plattner <aplattner at nvidia.com>

On Tue, Nov 17, 2009 at 10:59:43AM -0800, Adam Jackson wrote:
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> ---
>  src/dummy_driver.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/src/dummy_driver.c b/src/dummy_driver.c
> index 560b9b5..f68cfc9 100644
> --- a/src/dummy_driver.c
> +++ b/src/dummy_driver.c
> @@ -792,6 +792,9 @@ DUMMYCreateWindow(WindowPtr pWin)
>      return TRUE;
>  }
>  
> +#ifndef HW_SKIP_CONSOLE
> +#define HW_SKIP_CONSOLE 4
> +#endif
>  
>  static Bool
>  dummyDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, pointer ptr)
> @@ -801,7 +804,7 @@ dummyDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, pointer ptr)
>      switch (op) {
>  	case GET_REQUIRED_HW_INTERFACES:
>  	    flag = (CARD32*)ptr;
> -	    (*flag) = 0;
> +	    (*flag) = HW_SKIP_CONSOLE;
>  	    return TRUE;
>  	default:
>  	    return FALSE;
> -- 
> 1.6.5.2


More information about the xorg-devel mailing list