[Intel-gfx] [PATCH 7/7] Update intel_reg_dumper for new chipset

Zhenyu Wang zhen78 at gmail.com
Sat Jun 6 17:21:35 CEST 2009


On 2009.06.05 15:47:26 +0800, Zhenyu Wang wrote:
> Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
>  src/reg_dumper/main.c       |    5 ++++-
>  src/reg_dumper/reg_dumper.h |    1 +
>  2 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/src/reg_dumper/main.c b/src/reg_dumper/main.c
> index ce883ef..e325a18 100644
> --- a/src/reg_dumper/main.c
> +++ b/src/reg_dumper/main.c
> @@ -80,7 +80,10 @@ int main(int argc, char **argv)
>      scrn.scrnIndex = 0;
>      scrn.pI830 = &i830;
>  
> -    i830DumpRegs(&scrn);
> +    if (IS_IGDNG((&i830)))
> +	IGDNGDumpRegs(&scrn);
> +    else
> +	i830DumpRegs(&scrn);
>  
>      return 0;
>  }
> diff --git a/src/reg_dumper/reg_dumper.h b/src/reg_dumper/reg_dumper.h
> index 8c2eb0b..4eb4b44 100644
> --- a/src/reg_dumper/reg_dumper.h
> +++ b/src/reg_dumper/reg_dumper.h
> @@ -85,3 +85,4 @@ char *XNFprintf(const char *format, ...);
>  void xf86DrvMsg(int scrnIndex, int severity, const char *format, ...);
>  void i830DumpRegs(ScrnInfoPtr pScrn);
>  void intel_i830rec_init(I830Ptr pI830);
> +void IGDNGDumpRegs(ScrnInfoPtr pScrn);
> -- 

This one can be ignored, as I've already checked new chip
with i830DumpRegs in the last one.




More information about the Intel-gfx mailing list