[igt-dev] [PATCH i-g-t v3 2/3] tests/kms_psr2_sf: Change testcase design
Petri Latvala
petri.latvala at intel.com
Wed Nov 10 12:04:11 UTC 2021
On Wed, Nov 10, 2021 at 01:25:50AM +0530, Jeevan B wrote:
> Change testcase design so that it avoids new subtest for each block position.
>
> Signed-off-by: Jeevan B <jeevan.b at intel.com>
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
> ---
> tests/i915/kms_psr2_sf.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tests/i915/kms_psr2_sf.c b/tests/i915/kms_psr2_sf.c
> index dca2d030..7f88b514 100644
> --- a/tests/i915/kms_psr2_sf.c
> +++ b/tests/i915/kms_psr2_sf.c
> @@ -582,9 +582,9 @@ igt_main
> }
>
> /* Verify primary plane selective fetch */
> - for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> - igt_describe("Test that selective fetch works on primary plane");
> - igt_subtest_f("primary-%s-sf-dmg-area-%d", op_str(data.op), i) {
> + igt_describe("Test that selective fetch works on primary plane");
> + igt_subtest_f("primary-%s-sf-dmg-area", op_str(data.op)) {
> + for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> data.damage_area_count = i;
> data.test_plane_id = DRM_PLANE_TYPE_PRIMARY;
> prepare(&data);
> @@ -594,9 +594,9 @@ igt_main
> }
>
> /* Verify overlay plane selective fetch */
> - for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> - igt_describe("Test that selective fetch works on overlay plane");
> - igt_subtest_f("overlay-%s-sf-dmg-area-%d", op_str(data.op), i) {
> + igt_describe("Test that selective fetch works on overlay plane");
> + igt_subtest_f("overlay-%s-sf-dmg-area", op_str(data.op)) {
> + for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> data.damage_area_count = i;
> data.test_plane_id = DRM_PLANE_TYPE_OVERLAY;
> prepare(&data);
> @@ -618,9 +618,9 @@ igt_main
> /* Only for overlay plane */
> data.op = PLANE_MOVE;
> /* Verify overlay plane move selective fetch */
> - for (i = POS_TOP_LEFT; i <= POS_BOTTOM_RIGHT ; i++) {
> - igt_describe("Test that selective fetch works on moving overlay plane");
> - igt_subtest_f("%s-sf-dmg-area-%d", op_str(data.op), i) {
> + igt_describe("Test that selective fetch works on moving overlay plane");
> + igt_subtest_f("%s-sf-dmg-area", op_str(data.op)) {
> + for (i = POS_TOP_LEFT; i <= POS_BOTTOM_RIGHT ; i++) {
> data.pos = i;
> data.test_plane_id = DRM_PLANE_TYPE_OVERLAY;
> prepare(&data);
> @@ -631,10 +631,10 @@ igt_main
>
> /* Verify primary plane selective fetch with overplay plane blended */
> data.op = OVERLAY_PRIM_UPDATE;
> - for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> - igt_describe("Test that selective fetch works on primary plane "
> - "with blended overlay plane");
> - igt_subtest_f("%s-sf-dmg-area-%d", op_str(data.op), i) {
> + igt_describe("Test that selective fetch works on primary plane "
> + "with blended overlay plane");
> + igt_subtest_f("%s-sf-dmg-area", op_str(data.op)) {
> + for (i = 1; i <= MAX_DAMAGE_AREAS; i++) {
> data.damage_area_count = i;
> data.test_plane_id = DRM_PLANE_TYPE_PRIMARY;
> prepare(&data);
> --
> 2.19.1
>
More information about the igt-dev
mailing list