diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-12-21 19:14:32 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-01-30 16:13:08 +0200 |
commit | 961d95e09c045fe2998c74da96961edc8658f171 (patch) | |
tree | 38b2345ea8bdbfe3611ab9e94c3d1f4df9ac80ec /drivers/gpu/drm/rockchip | |
parent | b19c9bcaa20ec10bc39389f2b8bfe4c57cde7cbd (diff) | |
download | lwn-961d95e09c045fe2998c74da96961edc8658f171.tar.gz lwn-961d95e09c045fe2998c74da96961edc8658f171.zip |
drm/i915: Account for minimum ddb allocation restrictions
On icl+ bspec tells us to calculate a separate minimum ddb
allocation from the blocks watermark. Both have to be checked
against the actual ddb allocation, but since we do things the
other way around we'll just calculat the minimum acceptable
ddb allocation by taking the maximum of the two values.
We'll also replace the memcmp() with a full trawl over the
the watermarks so that it'll ignore the min_ddb_alloc
because we can't directly read that out from the hw. I suppose
we could reconstruct it from the other values, but I was
too lazy to do that now.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181221171436.8218-6-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'drivers/gpu/drm/rockchip')
0 files changed, 0 insertions, 0 deletions