[PATCH i-g-t] lib/igt_fb: Mark Xe framebuffers as slow access
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Tue May 28 03:51:16 UTC 2024
On 27-05-2024 06:47 pm, Juha-Pekka Heikkila wrote:
> Reading from Xe device framebuffers is slow hence mark is as such.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
> lib/igt_fb.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 5df5cb08f..26d6957f8 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -4401,7 +4401,8 @@ static void create_cairo_surface__convert(int fd, struct igt_fb *fb)
> setup_linear_mapping(&blit->base);
>
> /* speed things up by working from a copy in system memory */
> - cvt.src.slow_reads = is_i915_device(fd) && !gem_has_mappable_ggtt(fd);
> + cvt.src.slow_reads = (is_i915_device(fd) && !gem_has_mappable_ggtt(fd)) ||
> + is_xe_device(fd);
> } else {
> blit->base.linear.fb = *fb;
> blit->base.linear.fb.gem_handle = 0;
> @@ -4409,7 +4410,7 @@ static void create_cairo_surface__convert(int fd, struct igt_fb *fb)
> igt_assert(blit->base.linear.map);
>
> /* reading via gtt mmap is slow */
> - cvt.src.slow_reads = is_i915_device(fd);
> + cvt.src.slow_reads = is_intel_device(fd);
> }
>
> cvt.dst.ptr = blit->shadow_ptr;
More information about the igt-dev
mailing list