diff options
author | Rob Clark <[email protected]> | 2020-05-17 13:01:30 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-18 19:00:47 +0000 |
commit | 106c2a65dbd6b523a1a68f8b0e913294edc7bbd6 (patch) | |
tree | db23b7bed4421893224fe4ea500b655442f320bb | |
parent | e422f61e6eadade09fd904eef408746166fa9797 (diff) |
freedreno/drm: don't pass thru 'DUMP' flag on older kernels
"softpin" mode was introduced in the same kernel as the 'DUMP' flag. So
if we are using the legacy non-softpin path, clear the dump flag. OTOH
the 'DUMP' flag isn't quite so needed on older kernels, since we would
get all cmdstream, even SDS stateobjs, dumped regardless, as they would
have cmd table entries.
Fixes: b2c23b1e48f ("freedreno: Mark all ringbuffer BOs as to be dumped on crash.")
Signed-off-by: Rob Clark <[email protected]>
Tested-by: Ilia Mirkin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5081>
-rw-r--r-- | src/freedreno/drm/msm_ringbuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/drm/msm_ringbuffer.c b/src/freedreno/drm/msm_ringbuffer.c index 2ff4a3dfc56..0538859201a 100644 --- a/src/freedreno/drm/msm_ringbuffer.c +++ b/src/freedreno/drm/msm_ringbuffer.c @@ -153,7 +153,8 @@ append_bo(struct msm_submit *submit, struct fd_bo *bo) idx = APPEND(submit, submit_bos); idx = APPEND(submit, bos); - submit->submit_bos[idx].flags = bo->flags; + submit->submit_bos[idx].flags = bo->flags & + (MSM_SUBMIT_BO_READ | MSM_SUBMIT_BO_WRITE); submit->submit_bos[idx].handle = bo->handle; submit->submit_bos[idx].presumed = 0; |