summaryrefslogtreecommitdiff
path: root/tests/kms_psr.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/kms_psr.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/kms_psr.c')
-rw-r--r--tests/kms_psr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index 9767f475..d00e552f 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -153,6 +153,7 @@ static void scratch_buf_init(struct igt_buf *buf, drm_intel_bo *bo,
buf->stride = stride;
buf->tiling = I915_TILING_X;
buf->size = size;
+ buf->bpp = 32;
}
static void fill_render(data_t *data, uint32_t handle, unsigned char color)