diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2021-10-19 11:27:45 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2021-10-20 15:25:14 +0200 |
commit | 0b675ec78d70224c16d5d6e432f1bc1fdd07f1d9 (patch) | |
tree | 1d855e3fbe7565b9759d9a04c39e0133d75fae08 /lib/igt_fb.c | |
parent | 5e32858ad62342f9ae5207e0432bf6f4c896d165 (diff) |
lib/igt_fb: create i915 bo in lmem, if available
create_bo_for_fb() should call gem_buffer_create_fb_obj, as this is the
function used to create an object in lmem. This will fix the
kms_frontbuffer_tracking tests failing on DG1.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r-- | lib/igt_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 63f3c86e..216b1d5c 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1092,7 +1092,7 @@ static int create_bo_for_fb(struct igt_fb *fb, bool prefer_sysmem) if (is_i915_device(fd)) { int err; - fb->gem_handle = gem_create(fd, fb->size); + fb->gem_handle = gem_buffer_create_fb_obj(fd, fb->size); err = __gem_set_tiling(fd, fb->gem_handle, igt_fb_mod_to_tiling(fb->modifier), fb->strides[0]); |