AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/ \
+ -I$(top_builddir)/src/ \
-I$(top_srcdir)/src/mapi \
-I$(top_srcdir)/src/mesa/ \
-I$(top_srcdir)/src/gallium/include \
-I$(top_builddir)/src/util \
-I$(top_srcdir)/src/mesa/drivers/dri/common \
-I$(top_srcdir)/src/gtest/include \
+ -I$(top_builddir)/src/compiler \
+ -I$(top_srcdir)/src/compiler \
-I$(top_builddir)/src/compiler/glsl \
-I$(top_builddir)/src/compiler/nir \
-I$(top_srcdir)/src/compiler/nir \
$(WNO_OVERRIDE_INIT) \
$(LIBDRM_CFLAGS) \
$(VALGRIND_CFLAGS) \
- -msse2
+ -msse2 -mstackrealign
AM_CXXFLAGS = $(AM_CFLAGS)
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = \
- brw_oa_hsw.xml \
- brw_oa_bdw.xml \
- brw_oa_chv.xml \
- brw_oa_sklgt2.xml \
- brw_oa_sklgt3.xml \
- brw_oa_sklgt4.xml \
- brw_oa_bxt.xml \
- brw_oa_kblgt2.xml \
- brw_oa_kblgt3.xml \
- brw_oa_glk.xml \
- brw_oa_cflgt2.xml \
- brw_oa_cflgt3.xml \
brw_oa.py \
+ $(i965_oa_xml_FILES) \
meson.build
-# Note: we avoid using a multi target rule here and outputting both the
-# .c and .h files in one go so we don't hit problems with parallel
-# make and multiple invocations of the same script trying to write
-# to the same files.
-brw_oa_%.h: brw_oa.py brw_oa_%.xml Makefile.am
- $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --header=$(builddir)/brw_oa_$(*).h --chipset=$(*) $(srcdir)/brw_oa_$(*).xml
-brw_oa_%.c: brw_oa.py brw_oa_%.xml Makefile.am
- $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py --code=$(builddir)/brw_oa_$(*).c --chipset=$(*) $(srcdir)/brw_oa_$(*).xml
+brw_oa_metrics.c: brw_oa.py $(i965_oa_xml_FILES)
+ $(PYTHON) $(PYTHON_FLAGS) $(srcdir)/brw_oa.py \
+ --code=$(builddir)/brw_oa_metrics.c \
+ --header=$(builddir)/brw_oa_metrics.h \
+ $(i965_oa_xml_FILES:%=$(srcdir)/%)
+
+brw_oa_metrics.h: brw_oa_metrics.c