[Mesa-dev] [PATCH 12/17] i965: Move the back-end compiler to src/intel/compiler

Kenneth Graunke kenneth at whitecape.org
Wed Mar 8 18:35:34 UTC 2017


On Wednesday, March 8, 2017 10:02:38 AM PST Emil Velikov wrote:
> On 8 March 2017 at 17:37, Jason Ekstrand <jason at jlekstrand.net> wrote:
> > On Wed, Mar 8, 2017 at 9:16 AM, Emil Velikov <emil.l.velikov at gmail.com>
> > wrote:
> >>
> >> From: Jason Ekstrand <jason.ekstrand at intel.com>
> >>
> >> Mostly a dummy git mv with a couple of noticable parts:
> >>  - With the earlier header cleanups, nothing in src/intel depends on
> >> files in src/mesa/drivers/dri/i965/ - drop the -I...i965
> >>  - Both Autoconf and Android builds are addressed. Thanks to Mauro and
> >> Tapani for the help with the latter
> >>  - brw_util.[ch] is not really compiler specific, so it's moved to i965.
> >>  - update all src/intel/ targets to use the correct includes.
> >>
> >> [Emil Velikov: commit message, various small fixes througout]
> >> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> >> ---
> >>  src/intel/Android.blorp.mk                         |   2 +-
> >>  .../Android.gen.mk => intel/Android.compiler.mk}   |  41 ++++++--
> >>  src/intel/Android.isl.mk                           |   6 +-
> >>  src/intel/Android.mk                               |   1 +
> >>  src/intel/Makefile.am                              |   7 +-
> >>  src/intel/Makefile.compiler.am                     | 116
> >> +++++++++++++++++++++
> >>  src/intel/Makefile.sources                         |  89 ++++++++++++++++
> >>  src/intel/blorp/blorp_priv.h                       |   2 +-
> >>  src/intel/compiler/.gitignore                      |  10 ++
> >>  .../dri/i965 => intel/compiler}/brw_cfg.cpp        |   0
> >>  .../drivers/dri/i965 => intel/compiler}/brw_cfg.h  |   0
> >>  .../dri/i965 => intel/compiler}/brw_compiler.c     |   0
> >>  .../dri/i965 => intel/compiler}/brw_compiler.h     |   0
> >>  .../compiler}/brw_dead_control_flow.cpp            |   0
> >>  .../compiler}/brw_dead_control_flow.h              |   0
> >>  .../dri/i965 => intel/compiler}/brw_defines.h      |   0
> >
> >
> > ugh...  I don't really want to put brw_defines.h in the compiler...  Half of
> > brw_defines.h is really i965 GL stuff and half of it is compiler stuff.  I
> > think what we really want to do is split brw_defines.h into brw_defines.h
> > and brw_eu_defines.h and hope there isn't much overlap.
> >
> Agreed. Splitting it up would be better option. Would you guys give it
> a try or shall I ?
> 
> -Emil

I agree - we should split it.

Everything from "Execution Unit (EU) defines" until CMD_URB_FENCE,
should go in brw_eu_defines.h, and it looks like everything else should
stay.

Two exceptions to that range are BRW_STATELESS_BUFFER_* and
BRW_POLYGON_FACING_* which don't seem compiler related, but also are
completely unused.  We can probably just delete those.  Or leave them.

Emil, would you mind giving it a try?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170308/db408cc8/attachment.sig>


More information about the mesa-dev mailing list