From 10c983077a782ff9d02b6e5c47281039830fe6fb Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Fri, 16 Nov 2018 15:18:24 +0100 Subject: lib/batchbuffer: Set bpp in igt_buf. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to allow bpp = 8 or 16, so make sure we set the bpp in igt_buf. This way we can extend rendercopy to support other values for bpp. Signed-off-by: Maarten Lankhorst [mlankhorst: Fix double ;; (Ville] Reviewed-by: Ville Syrjälä --- tests/i915/gem_ppgtt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/i915/gem_ppgtt.c') diff --git a/tests/i915/gem_ppgtt.c b/tests/i915/gem_ppgtt.c index 86fe59f2..c2e4ca67 100644 --- a/tests/i915/gem_ppgtt.c +++ b/tests/i915/gem_ppgtt.c @@ -76,6 +76,7 @@ static void scratch_buf_init(struct igt_buf *buf, buf->stride = STRIDE; buf->tiling = I915_TILING_NONE; buf->size = SIZE; + buf->bpp = 32; } static void scratch_buf_fini(struct igt_buf *buf) @@ -132,6 +133,7 @@ static void fork_rcs_copy(int target, drm_intel_bo **dst, int count, unsigned fl buf.stride = STRIDE; buf.tiling = I915_TILING_NONE; buf.size = SIZE; + buf.bpp = 32; for (int i = 0; i <= target; i++) { struct igt_buf src; -- cgit v1.2.3