diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 13:02:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-24 13:02:09 +0000 |
commit | 8b570ba88f6f67d97b5c7f371a3d94d6ad755eed (patch) | |
tree | b84f6adf36cd10293d17af6c1586c534a6ca903e | |
parent | 6c6e06aa89eaae42e131dba9a74aaf0fed3eda4e (diff) |
drm/i915: Fix dbuf slice config lookup
From Ville Syrjala
34f5556ddf2b5fc25696832fa4a1a7013fc80a05 in linux 5.15.y/5.15.25
698bef8ff5d2edea5d1c9d6e5adf1bfed1e8a106 in mainline linux
-rw-r--r-- | sys/dev/pci/drm/i915/intel_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/intel_pm.c b/sys/dev/pci/drm/i915/intel_pm.c index 4f1fc465fd9..ac095381378 100644 --- a/sys/dev/pci/drm/i915/intel_pm.c +++ b/sys/dev/pci/drm/i915/intel_pm.c @@ -4863,7 +4863,7 @@ static u8 compute_dbuf_slices(enum pipe pipe, u8 active_pipes, bool join_mbus, { int i; - for (i = 0; i < dbuf_slices[i].active_pipes; i++) { + for (i = 0; dbuf_slices[i].active_pipes != 0; i++) { if (dbuf_slices[i].active_pipes == active_pipes && dbuf_slices[i].join_mbus == join_mbus) return dbuf_slices[i].dbuf_mask[pipe]; |