[igt-dev] [PATCH i-g-t 2/7] tools/aubdump: reuse intel_reg.h

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 14 10:41:35 UTC 2018


Quoting Lionel Landwerlin (2018-06-14 11:32:47)
> This makes context images a bit more readable.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  tools/aubdump.c | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)
> 
> diff --git a/tools/aubdump.c b/tools/aubdump.c
> index 2d2b6c60..ccf9b064 100644
> --- a/tools/aubdump.c
> +++ b/tools/aubdump.c
> @@ -41,6 +41,7 @@
>  
>  #include "intel_aub.h"
>  #include "intel_chipset.h"
> +#include "intel_reg.h"
>  
>  #ifndef ARRAY_SIZE
>  #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
> @@ -117,7 +118,7 @@
>  static const uint32_t render_context_init[GEN10_LR_CONTEXT_RENDER_SIZE /
>                                           sizeof(uint32_t)] = {
>         0 /* MI_NOOP */,
> -       0x1100101B /* MI_LOAD_REGISTER_IMM */,
> +       MI_LOAD_REGISTER_IMM_n(14),

 | MI_LRI_FORCE_POSTED

-Chris


More information about the igt-dev mailing list