projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d958939
)
drm/amdgpu: fix typo in amdgpu_vce_validate_bo
author
Christian König
<
[email protected]
>
Tue, 16 Jan 2018 10:00:12 +0000
(11:00 +0100)
committer
Alex Deucher
<
[email protected]
>
Tue, 16 Jan 2018 20:35:27 +0000
(15:35 -0500)
Otherwise buffer placement is very restrictive and might fail.
Fixes: "drm/amdgpu: fix VCE buffer placement restrictions v2"
Signed-off-by: Christian König <
[email protected]
>
Reported-by: Deng, Emily <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
Cc:
[email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
index 55a726a322e3e40d1c8289e47e70c6a5d76f9fa9..d274ae53553059a5970ffd28d5e5e3fcc7398143 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
@@
-585,8
+585,8
@@
static int amdgpu_vce_validate_bo(struct amdgpu_cs_parser *p, uint32_t ib_idx,
for (i = 0; i < bo->placement.num_placement; ++i) {
bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn);
- bo->placements[i].lpfn = bo->placements[i].
f
pfn ?
- min(bo->placements[i].
f
pfn, lpfn) : lpfn;
+ bo->placements[i].lpfn = bo->placements[i].
l
pfn ?
+ min(bo->placements[i].
l
pfn, lpfn) : lpfn;
}
return ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);
}