[0/6] benchmark: Add GPU benchmarking to SoftISP eGL
mbox series

Message ID 20261126110422.362455-1-remy.alipoursafari@collabora.com
Headers show
Series
  • benchmark: Add GPU benchmarking to SoftISP eGL
Related show

Message

Remy Alipoursafari Nov. 26, 2026, 11:03 a.m. UTC
Heya,

This patchset sets up ways to check the extensions & versions of OpenGL & eGL,
and allows the benchmark class to be extended, to allow the GPU to be
benchmarked with the EXT_disjoint_timer_query extension when present.

This has already received an initial review from Loïc Molinari and Robert Mader
over on a tracking MR at [1].

Also, I did previously send up the patch ([2]), however there was something
wrong with Collabora's email at the time meaning that it didn't properly get
delivered to the mailing list. So I'm sending this up again.

[1]: https://gitlab.freedesktop.org/coolGi/libcamera/-/merge_requests/1
[2]: https://lists.libcamera.org/pipermail/libcamera-devel/2026-November/thread.html#:~:text=P%C5%91cze-,[PATCH%200%2F6,Alipoursafari

Thanks in advance,
Remy A (coolGi)

Loïc Molinari (2):
  libcamera: egl: Add GL extension & version checks
  libcamera: software_isp: debayer_egl: Check GL_RG support

Remy Alipoursafari (4):
  libcamera: egl: Ensure required extensions are supported
  libcamera: egl: Separate proc address search into its own function
  software_isp: benchmark: Make benchmark into an abstract class
  software_isp: benchmark: Add GPU benchmarking

 include/libcamera/internal/egl.h              |  29 ++
 .../internal/software_isp/benchmark.h         |  18 +-
 .../internal/software_isp/benchmark_cpu.h     |  37 +++
 .../internal/software_isp/benchmark_egl.h     |  43 +++
 .../internal/software_isp/meson.build         |   3 +-
 .../internal/software_isp/swstats_cpu.h       |   5 +-
 src/libcamera/egl.cpp                         | 249 ++++++++++++++++--
 src/libcamera/software_isp/benchmark.cpp      | 108 ++++++--
 src/libcamera/software_isp/benchmark_cpu.cpp  |  74 ++++++
 src/libcamera/software_isp/benchmark_egl.cpp  |  98 +++++++
 src/libcamera/software_isp/debayer.h          |   4 +-
 src/libcamera/software_isp/debayer_cpu.cpp    |   1 +
 src/libcamera/software_isp/debayer_egl.cpp    |  46 +++-
 src/libcamera/software_isp/debayer_egl.h      |   4 +-
 src/libcamera/software_isp/meson.build        |   2 +
 src/libcamera/software_isp/swstats_cpu.cpp    |   1 +
 16 files changed, 666 insertions(+), 56 deletions(-)
 create mode 100644 include/libcamera/internal/software_isp/benchmark_cpu.h
 create mode 100644 include/libcamera/internal/software_isp/benchmark_egl.h
 create mode 100644 src/libcamera/software_isp/benchmark_cpu.cpp
 create mode 100644 src/libcamera/software_isp/benchmark_egl.cpp