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/perf.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/perf.c')
-rw-r--r-- | tests/perf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/perf.c b/tests/perf.c index 72e00132..48b323e5 100644 --- a/tests/perf.c +++ b/tests/perf.c @@ -501,6 +501,7 @@ scratch_buf_init(drm_intel_bufmgr *bufmgr, buf->stride = stride; buf->tiling = I915_TILING_NONE; buf->size = size; + buf->bpp = 32; } static void |