mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "drm: msm: sde: Allow reservation of odd number of DSCs"
This commit is contained in:
commit
6947c549ba
1 changed files with 5 additions and 2 deletions
|
|
@ -1324,11 +1324,14 @@ static int _sde_rm_reserve_dsc(
|
|||
reserve_mask |= (1 << iter_i.blk->id);
|
||||
dsc[alloc_count++] = iter_i.blk;
|
||||
|
||||
/* Return if peer is not needed */
|
||||
if (alloc_count == num_dsc_enc)
|
||||
break;
|
||||
|
||||
/* Valid first dsc found, find matching peers */
|
||||
sde_rm_init_hw_iter(&iter_j, 0, SDE_HW_BLK_DSC);
|
||||
|
||||
while (alloc_count != num_dsc_enc &&
|
||||
_sde_rm_get_hw_locked(rm, &iter_j)) {
|
||||
while (_sde_rm_get_hw_locked(rm, &iter_j)) {
|
||||
if (reserve_mask & (1 << iter_j.blk->id))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue