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_render_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_render_copy.c')
-rw-r--r-- | tests/i915/gem_render_copy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_render_copy.c b/tests/i915/gem_render_copy.c index 17a66564..0cd4e50f 100644 --- a/tests/i915/gem_render_copy.c +++ b/tests/i915/gem_render_copy.c @@ -287,6 +287,7 @@ static void scratch_buf_init(data_t *data, struct igt_buf *buf, buf->stride = ALIGN(width * 4, 128); buf->size = buf->stride * height; buf->tiling = tiling; + buf->bpp = 32; aux_width = scratch_buf_aux_width(buf); aux_height = scratch_buf_aux_height(buf); @@ -309,6 +310,7 @@ static void scratch_buf_init(data_t *data, struct igt_buf *buf, buf->stride = pitch; buf->tiling = tiling; buf->size = pitch * height; + buf->bpp = 32; } igt_assert(igt_buf_width(buf) == width); |