summaryrefslogtreecommitdiff
path: root/tests/i915/gem_render_tiled_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_tiled_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_tiled_blits.c')
-rw-r--r--tests/i915/gem_render_tiled_blits.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_render_tiled_blits.c b/tests/i915/gem_render_tiled_blits.c
index ef81c787..12950061 100644
--- a/tests/i915/gem_render_tiled_blits.c
+++ b/tests/i915/gem_render_tiled_blits.c
@@ -69,6 +69,7 @@ check_bo(struct intel_batchbuffer *batch, struct igt_buf *buf, uint32_t val)
tmp.stride = STRIDE;
tmp.tiling = I915_TILING_NONE;
tmp.size = SIZE;
+ tmp.bpp = 32;
render_copy(batch, NULL, buf, 0, 0, WIDTH, HEIGHT, &tmp, 0, 0);
if (snoop) {
@@ -134,6 +135,7 @@ static void run_test (int fd, int count)
buf[i].stride = pitch;
buf[i].tiling = tiling;
buf[i].size = SIZE;
+ buf[i].bpp = 32;
start_val[i] = start;