diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-11-16 15:18:24 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-11-20 17:37:05 +0100 |
commit | 10c983077a782ff9d02b6e5c47281039830fe6fb (patch) | |
tree | c91ced2d113943a4e11dde0dcafd581163027152 /tests/i915/gem_ring_sync_copy.c | |
parent | fdcdfa1e220c5070072d5dac9523cd105e7406c2 (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_ring_sync_copy.c')
-rw-r--r-- | tests/i915/gem_ring_sync_copy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/i915/gem_ring_sync_copy.c b/tests/i915/gem_ring_sync_copy.c index 8d372355..1e5728bc 100644 --- a/tests/i915/gem_ring_sync_copy.c +++ b/tests/i915/gem_ring_sync_copy.c @@ -137,6 +137,7 @@ static void scratch_buf_init_from_bo(struct igt_buf *buf, drm_intel_bo *bo) buf->stride = 4 * WIDTH; buf->tiling = I915_TILING_NONE; buf->size = 4 * WIDTH * HEIGHT; + buf->bpp = 32; } static void scratch_buf_init(data_t *data, struct igt_buf *buf, |