sync with OpenBSD -current
This commit is contained in:
parent
3af7aba2fd
commit
222e583e28
80 changed files with 1944 additions and 657 deletions
|
@ -1029,6 +1029,9 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
|
|||
if (!obj)
|
||||
return -EINVAL;
|
||||
|
||||
if (!info || info->head.block == AMDGPU_RAS_BLOCK_COUNT)
|
||||
return -EINVAL;
|
||||
|
||||
if (info->head.block == AMDGPU_RAS_BLOCK__UMC) {
|
||||
amdgpu_ras_get_ecc_info(adev, &err_data);
|
||||
} else {
|
||||
|
|
|
@ -1033,7 +1033,12 @@ static bool setup_dsc_config(
|
|||
if (!is_dsc_possible)
|
||||
goto done;
|
||||
|
||||
dsc_cfg->num_slices_v = pic_height/slice_height;
|
||||
if (slice_height > 0) {
|
||||
dsc_cfg->num_slices_v = pic_height / slice_height;
|
||||
} else {
|
||||
is_dsc_possible = false;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (target_bandwidth_kbps > 0) {
|
||||
is_dsc_possible = decide_dsc_target_bpp_x16(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue