[igt-dev] [i-g-t V2 21/40] tests/i915/kms_mmap_write_crc: Add XE support

Karthik B S karthik.b.s at intel.com
Tue Apr 25 09:19:43 UTC 2023


On 4/25/2023 12:19 PM, Bhanuprakash Modem wrote:
> Add XE driver support for kms tests.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
> ---
>   tests/i915/kms_mmap_write_crc.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/i915/kms_mmap_write_crc.c b/tests/i915/kms_mmap_write_crc.c
> index 4f7a86bf4..bc51975f6 100644
> --- a/tests/i915/kms_mmap_write_crc.c
> +++ b/tests/i915/kms_mmap_write_crc.c
> @@ -102,7 +102,7 @@ static void test(data_t *data)
>   	igt_plane_set_fb(data->primary, &data->fb[0]);
>   	igt_display_commit(display);
>   
> -	if (!gem_has_lmem(data->drm_fd)) {
> +	if (is_i915_device(data->drm_fd) && !gem_has_lmem(data->drm_fd)) {
>   		uint32_t caching;
>   
>   		/* make sure caching mode has become UC/WT */
> @@ -259,7 +259,7 @@ igt_main_args("n", NULL, NULL, opt_handler, NULL)
>   	enum pipe pipe;
>   
>   	igt_fixture {
> -		data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
> +		data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
>   
>   		data.devid = intel_get_drm_devid(data.drm_fd);
>   


More information about the igt-dev mailing list