[PATCH RFC 1/2] drm: add bitmask property type

Chris Wilson chris at chris-wilson.co.uk
Fri Mar 30 01:44:36 PDT 2012


On Thu, 29 Mar 2012 20:02:45 -0500, Rob Clark <rob.clark at linaro.org> wrote:
> +	} else if (property->flags & DRM_MODE_PROP_BITMASK) {
> +		int i;
> +		__u64 valid_mask = 0;
> +		for (i = 0; i < property->num_values; i++)
> +			valid_mask |= (1 << property->values[i]);
This need to be 1LL << property->values[i].
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list