i965: Move MOCS macros to brw_context.h.
authorRafael Antognolli <rafael.antognolli@intel.com>
Fri, 28 Apr 2017 16:02:31 +0000 (09:02 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 May 2017 23:59:22 +0000 (16:59 -0700)
commit91ab1ccbfeec9ac0a068cadc858a9e1d61d10aee
treedcb5d19a069dd56f455c3024434cbfd2258daf63
parent2e5d65ccb620da46be66a38b6dbf0cd58cab3344
i965: Move MOCS macros to brw_context.h.

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.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_defines.h