[igt-dev] [PATCH i-g-t 2/6] RFC Added is_xe to check if xe device

Joshi, Kunal1 kunal1.joshi at intel.com
Thu Jun 1 10:15:36 UTC 2023


On 6/1/2023 3:41 PM, Hogander, Jouni wrote:
> Hello Kunal,
>
> Please check my comment below.
>
> On Thu, 2023-06-01 at 10:39 +0530, Kunal Joshi wrote:
>> Added is_xe for test to have XE checks
>>
>> Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
>> ---
>>   tests/i915/kms_frontbuffer_tracking.c | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/tests/i915/kms_frontbuffer_tracking.c
>> b/tests/i915/kms_frontbuffer_tracking.c
>> index c2b99670..3bef46b6 100644
>> --- a/tests/i915/kms_frontbuffer_tracking.c
>> +++ b/tests/i915/kms_frontbuffer_tracking.c
>> @@ -309,6 +309,8 @@ struct {
>>          .stop = true,
>>   };
>>   
>> +static bool is_xe;
> Maybe you could just drop this and use is_xe_device() where you need to
> differentiate?
>
Hello Jouni,

Thanks for taking a look, will float changes as you suggested.

Regards
Kunal Joshi


More information about the igt-dev mailing list