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_stress.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/i915/gem_stress.c') diff --git a/tests/i915/gem_stress.c b/tests/i915/gem_stress.c index 225f283e..ef8316f2 100644 --- a/tests/i915/gem_stress.c +++ b/tests/i915/gem_stress.c @@ -485,6 +485,7 @@ static void init_buffer(struct igt_buf *buf, unsigned size) igt_assert(buf->bo); buf->tiling = I915_TILING_NONE; buf->stride = 4096; + buf->bpp = 32; sanitize_stride(buf); -- cgit v1.2.3