[Mesa-dev] [PATCH v03 14/38] i965: Move MOCS macros to brw_context.h.

Kenneth Graunke kenneth at whitecape.org
Thu May 4 06:36:29 UTC 2017


On Wednesday, May 3, 2017 7:52:01 PM PDT Pohjolainen, Topi wrote:
> On Wed, May 03, 2017 at 05:11:45PM -0700, Rafael Antognolli wrote:
> > On Wed, May 03, 2017 at 08:28:24PM +0300, Pohjolainen, Topi wrote:
> > > On Mon, May 01, 2017 at 06:43:02PM -0700, Rafael Antognolli wrote:
> > > > These macros are defined in brw_defines.h, which contains a lot of
> > > > macros that conflict with autogenerated code from genxml. But we need to
> > > > use them (the MOCS macros) in some of that same genxml code.
> > > > 
> > > > Moving them to brw_context.h solves that problem and we don't have to
> > > > include brw_defines.h.
> > > 
> > > I've been hoping to remove things from brw_context.h - it starts to
> > > resemble a dump yard for all sort of things. I think in this case we
> > > could put these into brw_state.h instead? Or did you already try that?
> > 
> > I just tried this and it works fine too. I'm OK with either place to put
> > these macros.
> 
> That would get my:
> 
> Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

I do like that better.  Since I already landed this patch...Rafael,
would you mind sending a patch to move them from brw_context.h to
brw_state.h, and applying Topi's R-b?  I can push it.
-------------- 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/20170503/8af34daf/attachment.sig>


More information about the mesa-dev mailing list