dri: pass use_flags to dri_bo_create_with_modifiers

We need use_flags when we implement the dri interface on top of hbm.

Also, dri_bo_create_with_modifiers does not take use flags only because
gbm_bo_create_with_modifiers does not.  That has changed with
gbm_bo_create_with_modifiers2 although minigbm does not reflect that.

BUG=b:292148713
TEST=CQ

Change-Id: I120358c843140a937fee1dd6183d1836ea622eec
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/5801181
Reviewed-by: Ryan Neph <ryanneph@google.com>
Commit-Queue: Chia-I Wu <olv@google.com>
Tested-by: Chia-I Wu <olv@google.com>
Reviewed-by: Dominik Behr <dbehr@chromium.org>
This commit is contained in:
Chia-I Wu 2024-08-20 10:07:08 -07:00 committed by Chromeos LUCI
parent ac54d29297
commit e2fdd90122
3 changed files with 7 additions and 6 deletions

4
dri.c
View file

@ -303,8 +303,8 @@ free_image:
}
int dri_bo_create_with_modifiers(struct dri_driver *dri, struct bo *bo, uint32_t width,
uint32_t height, uint32_t format, const uint64_t *modifiers,
uint32_t modifier_count)
uint32_t height, uint32_t format, uint64_t use_flags,
const uint64_t *modifiers, uint32_t modifier_count)
{
int ret, dri_format;