From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib/igt_fb: create i915 bo in lmem, if available
Date: Tue, 19 Oct 2021 13:02:07 +0300 [thread overview]
Message-ID: <YW6Xn4Ysgnna9NFG@intel.com> (raw)
In-Reply-To: <20211019094030.553874-1-maarten.lankhorst@linux.intel.com>
On Tue, Oct 19, 2021 at 11:40:29AM +0200, Maarten Lankhorst wrote:
> 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>
> ---
> lib/igt_fb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 63f3c86e75f0..216b1d5c4aff 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);
Looks to do what we need.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> err = __gem_set_tiling(fd, fb->gem_handle,
> igt_fb_mod_to_tiling(fb->modifier),
> fb->strides[0]);
> --
> 2.33.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2021-10-19 10:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 9:40 [igt-dev] [PATCH i-g-t 1/2] lib/igt_fb: create i915 bo in lmem, if available Maarten Lankhorst
2021-10-19 9:40 ` [igt-dev] [PATCH i-g-t 2/2] lib/igt_draw: Use device coherent and cpu coherent mappings for draw methods Maarten Lankhorst
2021-10-19 10:09 ` Ville Syrjälä
2021-10-19 10:55 ` Maarten Lankhorst
2021-10-19 10:02 ` Ville Syrjälä [this message]
2021-10-20 13:29 ` [igt-dev] [PATCH i-g-t 1/2] lib/igt_fb: create i915 bo in lmem, if available Maarten Lankhorst
2021-10-19 11:46 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] " Patchwork
2021-10-19 14:22 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YW6Xn4Ysgnna9NFG@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox