diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 10:02:34 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-09-09 10:02:34 +0000 |
commit | 5c210ce0598926ba00570068e5ddb0fbc6725222 (patch) | |
tree | c2dcbb84d72d25d6e338df9066b6c678a7df1f79 /sys/dev/pci/drm/amd | |
parent | c9eba27f55ab3ca7f0fc79f2d80b9831fc7658a2 (diff) |
drm/amd/display: Skip wbscl_set_scaler_filter if filter is null
From Alex Hung
e3a95f29647ae45d1ec9541cd7df64f40bf2120a in linux-6.6.y/6.6.50
c4d31653c03b90e51515b1380115d1aedad925dd in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c b/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c index 994fb732a7c..a0d437f0ce2 100644 --- a/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c +++ b/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c @@ -690,6 +690,9 @@ static void wbscl_set_scaler_filter( int pair; uint16_t odd_coef, even_coef; + if (!filter) + return; + for (phase = 0; phase < (NUM_PHASES / 2 + 1); phase++) { for (pair = 0; pair < tap_pairs; pair++) { even_coef = filter[phase * taps + 2 * pair]; |