[igt-dev] [i-g-t 3/5] tests/intel/kms_dirtyfb: Use blitter as a default draw method
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Wed Nov 15 12:56:38 UTC 2023
On Wed-15-11-2023 03:45 pm, Hogander, Jouni wrote:
> On Wed, 2023-11-15 at 12:33 +0530, Bhanuprakash Modem wrote:
>> As Rendercopy support in IGT is not present for few latest
>> platforms, use Blitter as default draw method.
>>
>> Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
>> Cc: Jouni Högander <jouni.hogander at intel.com>
>> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
>> ---
>> tests/intel/kms_dirtyfb.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
>> index b14cc8bec..c072c221d 100644
>> --- a/tests/intel/kms_dirtyfb.c
>> +++ b/tests/intel/kms_dirtyfb.c
>> @@ -177,7 +177,7 @@ static void prepare(data_t *data)
>> &data->fbs[0]);
>>
>> igt_draw_rect_fb(data->drm_fd, data->bops, 0, &data->fbs[0],
>> - IGT_DRAW_RENDER, 0, 0, data->fbs[0].width,
>> + IGT_DRAW_BLT, 0, 0, data->fbs[0].width,
>
> I think you should use same method in prepare as you are using in the
> test itself. I.e. utilize that "supports" helper and use rendercopy if
> possible here.
Sure, in that case this patch could be folded with the patch-4. I'll
float the new rev of patches soon.
- Bhanu
>
> BR,
>
> Jouni Högander
>
>> data->fbs[0].height, 0xFF);
>>
>> primary = igt_output_get_plane_type(data->output,
>> @@ -197,7 +197,7 @@ static void prepare(data_t *data)
>> DRM_FORMAT_MOD_LINEAR, 0.0, 1.0, 0.0,
>> &data->fbs[1]);
>> igt_draw_rect_fb(data->drm_fd, data->bops, 0, &data->fbs[1],
>> - IGT_DRAW_RENDER, 0, 0, data->fbs[1].width,
>> + IGT_DRAW_BLT, 0, 0, data->fbs[1].width,
>> data->fbs[1].height, 0xFF);
>>
>> igt_create_color_fb(data->drm_fd, data->mode->hdisplay,
>
>
More information about the igt-dev
mailing list