[igt-dev] [PATCH i-g-t v27 04/30] lib/intel_bufops: add support for 64bit bpp

Zbigniew Kempczyński
2020-08-10T09:47:23Z

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>
---
lib/intel_bufops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
index c641dba4..35e3c0d2 100644
--- a/lib/intel_bufops.c
+++ b/lib/intel_bufops.c
@@ -706,7 +706,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 % 2 == 0);

memset(buf, 0, sizeof(*buf));