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

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon May 18 09:09:12 UTC 2020


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.

As commands created in gpu_cmds.c are coupled more than I thought on 
the beginning (media fill also use them) "_v2" suffix was introduced.
When all tests will be rewritten to "_v2" old functions can be removed
and "_v2" can be deleted.

v2: changes according to the review:
    - make intel_bb api more consistent and universal
    - add intel_bb api documentation
    - add alignment field in buf_ops buffer initalization for linear
      buffers
v3: changes:
    - add all gens pipelines
    - fix compiling issues on non-x86 archs
    - add ctx (suggested by knr)

Zbigniew Kempczyński (7):
  lib/intel_bufops: Add bufops reference and relaxate stride requirement
  lib/rendercopy_bufmgr: Pass alignment during buffer initialization
  lib/intel_batchbuffer: Introduce intel_bb
  lib/gpu_cmds: Add gpgpu pipeline functions based on intel_bb
  lib/gpgpu_fill: libdrm-free gpgpu pipeline creation
  lib/intel_batchbuffer: Introduce temporary igt_fillfunc_v2_t
  tests/gem_gpgpu_fill: Remove libdrm dependency

 lib/gpgpu_fill.c            | 181 ++++++++++++
 lib/gpgpu_fill.h            |  34 +++
 lib/gpu_cmds.c              | 559 ++++++++++++++++++++++++++++++++++++
 lib/gpu_cmds.h              |  54 ++++
 lib/intel_batchbuffer.c     | 412 ++++++++++++++++++++++++++
 lib/intel_batchbuffer.h     |  97 +++++++
 lib/intel_bufops.c          |  41 ++-
 lib/intel_bufops.h          |   7 +-
 lib/rendercopy_bufmgr.c     |   4 +-
 tests/i915/gem_gpgpu_fill.c | 126 ++++++--
 10 files changed, 1474 insertions(+), 41 deletions(-)

-- 
2.26.0



More information about the igt-dev mailing list