[igt-dev] [PATCH] correct validating config on enconder mask. Then mode setting can be run through with multiple displays.
Ville Syrjälä
ville.syrjala at linux.intel.com
Tue Mar 21 12:45:43 UTC 2023
On Tue, Mar 21, 2023 at 10:48:26AM +0800, Jasber Chen wrote:
> From: Jasber Chen <yipeng.chen at amd.corp-partner.google.com>
>
> Signed-off-by: yipeng.chen at amd.com
> ---
> tests/kms_setmode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
> index bfa10891..4e59f2aa 100644
> --- a/tests/kms_setmode.c
> +++ b/tests/kms_setmode.c
> @@ -331,7 +331,7 @@ static void setup_crtcs(const struct test_config *tconf,
>
> encoder_mask |= 1 << get_encoder_idx(resources,
> encoder);
> - config_valid &= !(encoder_mask &
> + config_valid &= !!(encoder_mask &
> ~encoder->possible_clones);
The code looks correct the way it is.
>
> drmModeFreeEncoder(encoder);
> --
> 2.25.1
--
Ville Syrjälä
Intel
More information about the igt-dev
mailing list