[PATCH] tests/intel/gem_ctx_param: Add GTT size test

Andi Shyti andi.shyti at linux.intel.com
Mon Dec 9 22:19:19 UTC 2024


Hi Mikolaj,

...

> +	igt_describe("Tests that total size of GTT is power of two");
> +	igt_subtest("gtt-size") {
> +		gem_context_get_param(fd, &arg);
> +
> +		igt_assert_neq_u64(arg.value, 0);
> +		igt_assert(is_power_of_two(arg.value));

is the power of two really needed?

Andi


More information about the igt-dev mailing list