Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Kalamarz, Lukasz" <lukasz.kalamarz@intel.com>
To: "Dec, Katarzyna" <katarzyna.dec@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t 4/5] lib/gen8_render: Cleanup of libs
Date: Mon, 11 Jun 2018 12:50:02 +0000	[thread overview]
Message-ID: <1528721401.4203.61.camel@intel.com> (raw)
In-Reply-To: <20180611075814.GH8119@kdec5-desk.ger.corp.intel.com>

On Mon, 2018-06-11 at 09:58 +0200, Katarzyna Dec wrote:
> On Fri, Jun 08, 2018 at 01:38:54PM +0200, Lukasz Kalamarz wrote:
> > This patch implement
> 
> s/implement/implements
> > some changes in gen8_render header and
> > all files that include it. Renamed definition that were
> > introduced in that file to GEN8_* instead of previous names.
> 
> What did you mean by this sentence ^^^^^^?

There were some registers, that were introduced in this file with gen7
prefix, but when I checked gen7_render file, those definitions were
missing. this is why i swapped GEN7_ prefix to GEN8_ to be in sync with
 naming convention.

> > Modified include to use gen7_render header instead of gen6.
> > 
> > Signed-off-by: Lukasz Kalamarz <lukasz.kalamarz@intel.com>
> > Cc: Katarzyna Dec <katarzyna.dec@intel.com>
> > Cc: Antonio Argenziano <antonio.argenziano@intel.com>
> > Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> > Cc: Ewelina Musial <ewelina.musial@intel.com>
> > ---
> >  lib/gen8_render.h                             | 74 ++++++---------
> > ------------
> >  lib/rendercopy_gen8.c                         | 22 ++++----
> >  lib/rendercopy_gen9.c                         | 22 ++++----
> >  tools/null_state_gen/intel_renderstate_gen8.c | 26 +++++-----
> >  tools/null_state_gen/intel_renderstate_gen9.c | 26 +++++-----
> >  5 files changed, 65 insertions(+), 105 deletions(-)
> > 
> > diff --git a/lib/gen8_render.h b/lib/gen8_render.h
> > index ba3f9f27..79f2f388 100644
> > --- a/lib/gen8_render.h
> > +++ b/lib/gen8_render.h
> > @@ -1,59 +1,33 @@
> >  #ifndef GEN8_RENDER_H
> >  #define GEN8_RENDER_H
> >  
> > -#include "gen6_render.h"
> > +#include "gen7_render.h"
> >  
> > -#define GEN7_3DSTATE_URB_VS (0x7830 << 16)
> > -#define GEN7_3DSTATE_URB_HS (0x7831 << 16)
> > -#define GEN7_3DSTATE_URB_DS (0x7832 << 16)
> > -#define GEN7_3DSTATE_URB_GS (0x7833 << 16)
> > +# define GEN8_WM_LEGACY_DIAMOND_LINE_RASTERIZATION	(1 <<
> > 26)
> >  
> > -# define GEN7_WM_LEGACY_DIAMOND_LINE_RASTERIZATION	(1 <<
> > 26)
> 
> If I see correctly there was so much mess in this libs previously, so
> gen7 definitions were included here as well? Right?
> Huge copy-paste in the past then...
> 

Previously this header included gen6_render.h and was missing some
registers definitions introduced by gen7. Once we fixed that, there is
no need to redefine them here.

> Kasia :)
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-06-11 12:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-08 11:38 [igt-dev] [PATCH i-g-t 1/5] lib/gen7_render: include gen6_render header Lukasz Kalamarz
2018-06-08 11:38 ` [igt-dev] [PATCH i-g-t 2/5] lib/gen6_render.h: Use gen6 definitions where it is possible Lukasz Kalamarz
2018-06-11  7:44   ` Katarzyna Dec
2018-06-11 12:46     ` Kalamarz, Lukasz
2018-06-11 13:40       ` Katarzyna Dec
2018-06-08 11:38 ` [igt-dev] [PATCH i-g-t 3/5] lib/gen7_render: Drop duplicated definitions Lukasz Kalamarz
2018-06-08 11:38 ` [igt-dev] [PATCH i-g-t 4/5] lib/gen8_render: Cleanup of libs Lukasz Kalamarz
2018-06-11  7:58   ` Katarzyna Dec
2018-06-11 12:50     ` Kalamarz, Lukasz [this message]
2018-06-11 13:38       ` Katarzyna Dec
2018-06-08 11:38 ` [igt-dev] [PATCH i-g-t 5/5] lib/gen9_render: Header cleanup Lukasz Kalamarz
2018-06-11  7:59   ` Katarzyna Dec
2018-06-08 12:16 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/5] lib/gen7_render: include gen6_render header Patchwork
2018-06-08 14:52 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-06-11  7:31 ` [igt-dev] [PATCH i-g-t 1/5] " Katarzyna Dec
2018-06-11 12:42   ` Kalamarz, Lukasz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1528721401.4203.61.camel@intel.com \
    --to=lukasz.kalamarz@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=katarzyna.dec@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox