[igt-dev] [PATCH i-g-t 0/6] Make gpgpu fill tests libdrm independent

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue May 12 08:23:56 UTC 2020


This series is likely begin of the journey to make all gpgpu code
(and then media and render copy) libdrm free. 

I've introduced intel_bb which is very simplified version of libdrm
powered intel_batchbuffer. Currently it supports simple relocation
but it is enough to cover all gpgpu fill needs. Other (fenced) 
relocation will be added when I will have to face with such pipelines /
batchbuffers.

I think there're two possibilities - iterate until functions with 
suffix "_v2" will be ready to be replaced older libdrm versions or when 
patch will be mature enough to merge and add other gens one by one
with final replacement of "_v2" to "" on the end. I'm looking forward
review comments and suggestions. 

Cc: Chris Wilson <chris at chris-wilson.co.uk>
 
Zbigniew Kempczyński (6):
  lib/intel_bufops: Add bufops reference and relaxate stride requirement
  lib/intel_batchbuffer: Introduce intel_bb
  lib/intel_batchbuffer: Introduce temporary igt_fillfunc_v2_t
  lib/gpu_cmds: Add gpgpu pipeline functions based on intel_bb
  lib/gpgpu_fill: libdrm-free gpgpu pipeline creation for gen7
  tests/gem_gpgpu_fill: Add gen7 version without libdrm dependency

 lib/gpgpu_fill.c            |  48 +++++
 lib/gpgpu_fill.h            |   8 +
 lib/gpu_cmds.c              | 340 ++++++++++++++++++++++++++++++++++++
 lib/gpu_cmds.h              |  33 ++++
 lib/intel_batchbuffer.c     | 221 +++++++++++++++++++++++
 lib/intel_batchbuffer.h     |  86 +++++++++
 lib/intel_bufops.c          |  20 ++-
 lib/intel_bufops.h          |   3 +
 tests/i915/gem_gpgpu_fill.c | 125 ++++++++++---
 9 files changed, 856 insertions(+), 28 deletions(-)

-- 
2.26.0



More information about the igt-dev mailing list