[igt-dev] [PATCH v2 7/8] lib/igt_draw: Fix igt_draw_fill_fb() on platforms w/o aperture
Dixit, Ashutosh
ashutosh.dixit at intel.com
Wed Feb 12 03:48:41 UTC 2020
On Mon, 10 Feb 2020 18:31:07 -0800, Imre Deak wrote:
>
> Draw through a CPU mapping on platforms w/o a GTT aperture.
>
> Cc: Matt Roper <matthew.d.roper at intel.com>
> Signed-off-by: Imre Deak <imre.deak at intel.com>
> Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> lib/igt_draw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c
> index fa8ab562..b9c3ae26 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -728,6 +728,6 @@ void igt_draw_rect_fb(int fd, drm_intel_bufmgr *bufmgr,
> */
> void igt_draw_fill_fb(int fd, struct igt_fb *fb, uint32_t color)
> {
> - igt_draw_rect_fb(fd, NULL, NULL, fb, IGT_DRAW_MMAP_GTT,
> + igt_draw_rect_fb(fd, NULL, NULL, fb, IGT_DRAW_MMAP_CPU,
> 0, 0, fb->width, fb->height, color);
Should also be WC.
More information about the igt-dev
mailing list