[PATCH i-g-t v1 1/1] tests/intel/xe_render_copy: Skip tests on PVC

Maciej Patelczyk maciej.patelczyk at intel.com
Thu May 15 09:38:57 UTC 2025


On 15.05.2025 10:36, Zbigniew Kempczyński wrote:

> On Tue, May 13, 2025 at 11:52:52AM +0000, Jan Sokolowski wrote:
>> As PVC doesn't have render, these tests will fail by definition.
>>
>> Skip render tests on PVC.
>>
>> Signed-off-by: Jan Sokolowski<jan.sokolowski at intel.com>
>> ---
>>   tests/intel/xe_render_copy.c | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/tests/intel/xe_render_copy.c b/tests/intel/xe_render_copy.c
>> index fadfd162c..c36520c92 100644
>> --- a/tests/intel/xe_render_copy.c
>> +++ b/tests/intel/xe_render_copy.c
>> @@ -697,6 +697,10 @@ igt_main_args("dpiW:H:", NULL, help_str, opt_handler, NULL)
>>   
>>   	igt_fixture {
>>   		xe = drm_open_driver(DRIVER_XE);
>> +
>> +		/* As PVC doesn't have render, we should skip here */
>> +		igt_require(!IS_PONTEVECCHIO(xe_dev_id(xe)));
> Please add is_render_supported() helper below render_supports_tiling().
> Checking cmds_info->render_tilings is enough to determine if render is supported.
>
> --
> Zbigniew


Or possibly just

+               igt_require(xe_has_engine_class(xe, DRM_XE_ENGINE_CLASS_RENDER));

after the drm_open_driver().


Maciej

>> +
>>   		bops = buf_ops_create(xe);
>>   		srand(time(NULL));
>>   		set = xe_get_memory_region_set(xe, DRM_XE_MEM_REGION_CLASS_SYSMEM);
>> -- 
>> 2.34.1
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20250515/2ea50594/attachment-0001.htm>


More information about the igt-dev mailing list