i965: perf: add support for CoffeeLake GT2

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Lionel Landwerlin 2017-08-31 11:28:30 +01:00
parent 74f41fd781
commit b5f6b9b0eb
5 changed files with 10484 additions and 2 deletions

View file

@ -115,6 +115,7 @@ EXTRA_DIST = \
brw_oa_kblgt2.xml \
brw_oa_kblgt3.xml \
brw_oa_glk.xml \
brw_oa_cflgt2.xml \
brw_oa.py
# Note: we avoid using a multi target rule here and outputting both the

View file

@ -168,4 +168,6 @@ i965_oa_GENERATED_FILES = \
brw_oa_kblgt3.h \
brw_oa_kblgt3.c \
brw_oa_glk.h \
brw_oa_glk.c
brw_oa_glk.c \
brw_oa_cflgt2.h \
brw_oa_cflgt2.c

File diff suppressed because it is too large Load diff

View file

@ -81,6 +81,7 @@
#include "brw_oa_kblgt2.h"
#include "brw_oa_kblgt3.h"
#include "brw_oa_glk.h"
#include "brw_oa_cflgt2.h"
#include "intel_batchbuffer.h"
#define FILE_DEBUG_FLAG DEBUG_PERFMON
@ -2090,6 +2091,11 @@ get_register_queries_function(const struct gen_device_info *devinfo)
}
if (devinfo->is_geminilake)
return brw_oa_register_queries_glk;
if (devinfo->is_coffeelake) {
if (devinfo->gt == 2)
return brw_oa_register_queries_cflgt2;
}
return NULL;
}

View file

@ -156,7 +156,7 @@ oa_generator = generator(
i965_oa_sources = []
foreach hw : ['hsw', 'bdw', 'chv', 'sklgt2', 'sklgt3', 'sklgt4', 'bxt',
'kblgt2', 'kblgt3', 'glk']
'kblgt2', 'kblgt3', 'glk', 'cflgt2']
_xml = 'brw_oa_@0@.xml'.format(hw)
i965_oa_sources += oa_generator.process(_xml, extra_args : hw)
endforeach