forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/gpu/drm/drm_dsc.c
....@@ -334,12 +334,6 @@
334334 else
335335 vdsc_cfg->nfl_bpg_offset = 0;
336336
337
- /* 2^16 - 1 */
338
- if (vdsc_cfg->nfl_bpg_offset > 65535) {
339
- DRM_DEBUG_KMS("NflBpgOffset is too large for this slice height\n");
340
- return -ERANGE;
341
- }
342
-
343337 /* Number of groups used to code the entire slice */
344338 groups_total = groups_per_line * vdsc_cfg->slice_height;
345339
....@@ -367,11 +361,6 @@
367361 * be used to disable the scale increment at the end of the slice
368362 */
369363 vdsc_cfg->scale_increment_interval = 0;
370
- }
371
-
372
- if (vdsc_cfg->scale_increment_interval > 65535) {
373
- DRM_DEBUG_KMS("ScaleIncrementInterval is large for slice height\n");
374
- return -ERANGE;
375364 }
376365
377366 /*