[igt-dev] [PATCH i-g-t] lib/gen6_render: Refactoring lib

Katarzyna Dec katarzyna.dec at intel.com
Tue Apr 10 10:35:03 UTC 2018


On Mon, Apr 09, 2018 at 05:42:29PM +0200, Lukasz Kalamarz wrote:
> This patch is starting a series of refactoring changes for *render*
> libs. A lot of code in those libraries is copy/pasted and renamed for
> different gen.
> 
> Changes made in this patch:
> - removal of duplicated registers definitions
> - move field definitions above it register definition
> - move definitions of register into ascending order
> - unify spaces between register name and it's address/value
> 
> Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz at intel.com>
> Cc: Katarzyna Dec <katarzyna.dec at intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>

> +#define GEN6_REGISTER_TYPE_UB			4
> +#define GEN6_REGISTER_TYPE_B			5
> +#define GEN6_REGISTER_TYPE_VF			5	/* packed float vector, immediates only? */
> +#define GEN6_REGISTER_TYPE_HF			6
> +#define GEN6_REGISTER_TYPE_V			6	/* packed int vector, immediates only, uword dest only */
> +#define GEN6_REGISTER_TYPE_F			7
>
Generally looks good. There are few style issues: too long lines (like the one above),
mixed tabs and spaces, etc. Use checkpatch for see what needs to be changed.
I think that this changes can be introduced in another patch, so it will be easier
to review.

Kasia
> -- 
> 2.9.5
> 


More information about the igt-dev mailing list