[igt-dev] [PATCH i-g-t] tests/kms_plane_alpha_blend: Skip coverage-vs-premult-vs-none for 6bpc panels

Dixit, Ashutosh ashutosh.dixit at intel.com
Wed Jul 14 02:06:23 UTC 2021


On Thu, 08 Jul 2021 23:57:41 -0700, Vidya Srinivas wrote:
>
> +static bool is_6bpc(igt_display_t *display, enum pipe pipe) {
> +	char buf[8192];
> +	char *str;
> +	bool ret;
> +	int debugfs_fd;
> +	drmModeConnector *c;
> +	igt_output_t *output = igt_get_single_output_for_pipe(display, pipe);
> +
> +	if (!is_i915_device(display->drm_fd))
> +		return false;
> +
> +	c = output->config.connector;
> +	if (c->connector_type != DRM_MODE_CONNECTOR_eDP ||
> +		c->connector_type != DRM_MODE_CONNECTOR_DSI)
> +		return false;

Isn't this an && rather than an || ?

[298/1063] Compiling C object 'tests/59830eb@@kms_plane_alpha_blend at exe/kms_plane_alpha_blend.c.o'.
../tests/kms_plane_alpha_blend.c: In function ‘is_6bpc’:
../tests/kms_plane_alpha_blend.c:457:50: warning: logical ‘or’ of collectively exhaustive tests is always true [-Wlogical-op]
  if (c->connector_type != DRM_MODE_CONNECTOR_eDP ||
                                                  ^~
You cannot merge code with compile warnings.


More information about the igt-dev mailing list