Skip to content
Snippets Groups Projects
Commit 357dbe18 authored by Imre Deak's avatar Imre Deak
Browse files

tests/kms_properties: Fix upper bound of 'max bpc' range

The available range reported by the driver is the inclusive [min_bpc,
max_bpc], so fix the upper bound used by the test accordingly. This
issue had the side-effect (on ICL for instance) of limiting 'max bpc' to
10 (instead of restoring it to the default 12) for all the tests
following kms_properties, as seen from the logs in the referenced bug
below.

Reference: https://bugs.freedesktop.org/show_bug.cgi?id=109593


Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarSimon Ser <simon.ser@intel.com>
parent 50251bcb
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ static void max_bpc_prop_test(int fd, uint32_t id, uint32_t type, drmModePropert ...@@ -91,7 +91,7 @@ static void max_bpc_prop_test(int fd, uint32_t id, uint32_t type, drmModePropert
if (atomic) if (atomic)
req = drmModeAtomicAlloc(); req = drmModeAtomicAlloc();
for ( i = prop->values[0]; i < prop->values[1] ; i++) { for (i = prop->values[0]; i <= prop->values[1]; i++) {
if (!atomic) { if (!atomic) {
ret = drmModeObjectSetProperty(fd, id, type, prop_id, i); ret = drmModeObjectSetProperty(fd, id, type, prop_id, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment