summaryrefslogtreecommitdiff
path: root/tests/kms_ccs.c
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-08-04 17:08:04 +0100
committerDaniel Stone <daniels@collabora.com>2017-08-04 18:13:20 +0100
commitd24154786d307998fb25e81e9e6aad01f3cbe49e (patch)
tree33331af06e4fc5ed63b9db8e92042c7beb1cafbb /tests/kms_ccs.c
parentadcde8ac7837144088f704720bac05e0e4555973 (diff)
tests/kms_ccs: Don't overallocate CCS surface
Due to a mix-up in kernel branches being used, I'd mangled Jason's original CCS test to hopelessly overallocate the CCS surface size. Restore it back to its original. Signed-off-by: Daniel Stone <daniels@collabora.com> Cc: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'tests/kms_ccs.c')
-rw-r--r--tests/kms_ccs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index c99d0cd1..ef952f2b 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -187,7 +187,7 @@ static void display_fb(data_t *data, int compressed)
f.pitches[1] = ALIGN(width * 1, 128);
f.modifier[1] = modifier;
f.offsets[1] = size[0];
- size[1] = f.pitches[1] * ALIGN(f.height, 32);
+ size[1] = f.pitches[1] * ALIGN(height, 32);
f.handles[0] = gem_create(data->drm_fd, size[0] + size[1]);
f.handles[1] = f.handles[0];