summaryrefslogtreecommitdiff
path: root/tests/i915/gem_render_linear_blits.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-11-16 15:18:24 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-11-20 17:37:05 +0100
commit10c983077a782ff9d02b6e5c47281039830fe6fb (patch)
treec91ced2d113943a4e11dde0dcafd581163027152 /tests/i915/gem_render_linear_blits.c
parentfdcdfa1e220c5070072d5dac9523cd105e7406c2 (diff)
lib/batchbuffer: Set bpp in igt_buf.
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 <maarten.lankhorst@linux.intel.com> [mlankhorst: Fix double ;; (Ville] Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_render_linear_blits.c')
-rw-r--r--tests/i915/gem_render_linear_blits.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i915/gem_render_linear_blits.c b/tests/i915/gem_render_linear_blits.c
index a1a7e033..667ee872 100644
--- a/tests/i915/gem_render_linear_blits.c
+++ b/tests/i915/gem_render_linear_blits.c
@@ -111,11 +111,13 @@ static void run_test (int fd, int count)
src.stride = STRIDE;
src.tiling = I915_TILING_NONE;
src.size = SIZE;
+ src.bpp = 32;
dst.bo = bo[(i + 1) % count];
dst.stride = STRIDE;
dst.tiling = I915_TILING_NONE;
dst.size = SIZE;
+ dst.bpp = 32;
render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0);
start_val[(i + 1) % count] = start_val[i % count];
@@ -134,11 +136,13 @@ static void run_test (int fd, int count)
src.stride = STRIDE;
src.tiling = I915_TILING_NONE;
src.size = SIZE;
+ src.bpp = 32;
dst.bo = bo[i % count];
dst.stride = STRIDE;
dst.tiling = I915_TILING_NONE;
dst.size = SIZE;
+ dst.bpp = 32;
render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0);
start_val[i % count] = start_val[(i + 1) % count];
@@ -159,11 +163,13 @@ static void run_test (int fd, int count)
src.stride = STRIDE;
src.tiling = I915_TILING_NONE;
src.size = SIZE;
+ src.bpp = 32;
dst.bo = bo[d];
dst.stride = STRIDE;
dst.tiling = I915_TILING_NONE;
dst.size = SIZE;
+ dst.bpp = 32;
render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0);
start_val[d] = start_val[s];