[Intel-gfx] [PATCH i-g-t 00/11] Improve robustness of the i915 perf tests

Petri Latvala petri.latvala at intel.com
Fri Aug 4 11:59:54 UTC 2017


On Fri, Aug 04, 2017 at 12:20:29PM +0100, Lionel Landwerlin wrote:
> Hi all,
> 
> This is a resend of a series that was posted a few months ago. I've
> pushed all the patches that has a Rb. This is a shorter list but
> pretty important to make the tests more stable.


perf.c:233:3: error: ‘I915_OA_FORMAT_A12’ undeclared here (not in a function)
  [I915_OA_FORMAT_A12] = {
   ^~~~~~~~~~~~~~~~~~
perf.c:233:3: error: array index in initializer not of integer type
perf.c:233:3: note: (near initialization for ‘oa_formats’)
perf.c:233:25: warning: excess elements in array initializer
  [I915_OA_FORMAT_A12] = {
   ^
perf.c:233:25: note: (near initialization for ‘oa_formats’)
perf.c:237:3: error: ‘I915_OA_FORMAT_A12_B8_C8’ undeclared here (not in a function)
  [I915_OA_FORMAT_A12_B8_C8] = {
   ^~~~~~~~~~~~~~~~~~~~~~~~
perf.c:237:3: error: array index in initializer not of integer type
perf.c:237:3: note: (near initialization for ‘oa_formats’)
perf.c:237:31: warning: excess elements in array initializer
  [I915_OA_FORMAT_A12_B8_C8] = {
   ^
perf.c:237:31: note: (near initialization for ‘oa_formats’)
perf.c:243:3: error: ‘I915_OA_FORMAT_A32u40_A4u32_B8_C8’ undeclared here (not in a function)
  [I915_OA_FORMAT_A32u40_A4u32_B8_C8] = {
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Those tokens have local definitions but only if DRM_I915_PERF_OPEN is
not present. For older (iow current) libdrm with PERF_OPEN but without
those new format tokens, we get this build error. Please fix asap.


--
Petri Latvala


More information about the Intel-gfx mailing list