summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2020-09-11 10:07:21 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2020-09-16 14:15:10 +0100
commit705dab66421391804fd7981953ba88ccf7b4e34c (patch)
tree355808fbe46389b4cb346a02d0430dd24be4d5de
parent3fb063259aa915c7695c469c5b5e10248f3b3392 (diff)
lib/intel_bufops: add support for 64bit bpp
Previous assert checking was to narrow and it didn't support 64bpp. Some kms tests use 64bpp so extend the assert. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--lib/intel_bufops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
index 4373ca4f..714e1aaa 100644
--- a/lib/intel_bufops.c
+++ b/lib/intel_bufops.c
@@ -716,7 +716,7 @@ static void __intel_buf_init(struct buf_ops *bops,
igt_assert(bops);
igt_assert(buf);
igt_assert(width > 0 && height > 0);
- igt_assert(bpp == 8 || bpp == 16 || bpp == 32);
+ igt_assert(bpp == 8 || bpp == 16 || bpp == 32 || bpp == 64);
igt_assert(alignment >= 0);
memset(buf, 0, sizeof(*buf));