To select full range quantization, userspace clears
LIMITED_RANGE flag in vmode. This shouldn't lead to
mode mismatch because the modes are still the same
even if LIMITED_RANGE flag doesn't match. Hence ignore
LIMITED_RANGE bit in vmode comparision while finding a
matching mode from modelist.
bug
200306471
Change-Id: I2b30e5232c5e0f2e2100adb674a6706a491d958a
Signed-off-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-on: http://git-master/r/
1479088
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
var1->vsync_len != var2->vsync_len)
return false;
- if (var1->vmode == var2->vmode)
+ /*
+ * Userspace might modify LIMITED_RANGE flag to select full range
+ * quantization. This shouldn't lead to mode mismatch as the modes
+ * are still the same even if LIMITED_RANGE flag doesn't match.
+ * Ignore LIMITED_RANGE bit during vmode comparision.
+ */
+ if ((var1->vmode & ~FB_VMODE_LIMITED_RANGE) ==
+ (var2->vmode & ~FB_VMODE_LIMITED_RANGE))
return true;
/*