[igt-dev] [PATCH i-g-t 0/2] Clean buffer and bo size in intel_buf

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Mon Oct 4 05:40:54 UTC 2021


In intel_buf size not always was equal to buffer size, even if 
intel_buf_bo_size() which returns that field would suggest.

Clean the mess - from now on buf->size contains real buffer size
(requested one) and buf->bo_size underlying gem bo size.

Cc: Petri Latvala <petri.latvala at intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>

Zbigniew Kempczyński (2):
  lib/intel_bufops: Rename intel_buf_bo_size() -> intel_buf_size()
  lib/intel_bufops: Store gem bo size

 lib/intel_aux_pgtable.c            |  2 +-
 lib/intel_bufops.c                 | 33 +++++++++++++++++-------------
 lib/intel_bufops.h                 |  3 +++
 tests/i915/api_intel_bb.c          |  6 +++---
 tests/i915/gem_render_copy.c       | 14 ++++++-------
 tests/i915/gem_set_tiling_vs_blt.c |  2 +-
 6 files changed, 34 insertions(+), 26 deletions(-)

-- 
2.26.0



More information about the igt-dev mailing list