freedreno/drm: readonly cmdstream
authorRob Clark <robdclark@chromium.org>
Fri, 31 Jan 2020 21:01:52 +0000 (13:01 -0800)
committerRob Clark <robdclark@chromium.org>
Fri, 31 Jan 2020 21:01:52 +0000 (13:01 -0800)
commitd326d30efefd132255826ff33a9a4c51c216fe39
tree2d468c87da33d4996794af073704792fbbd7cbc1
parentf93dfb509cbf9474befae9919dd8c135bbd67093
freedreno/drm: readonly cmdstream

Noticed that we weren't consistently making cmdstream buffers
gpu-readonly.  Fix that and drop the need to pass flags to
fd_bo_new_ring().

Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3663>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3663>
src/freedreno/drm/freedreno_bo.c
src/freedreno/drm/freedreno_priv.h
src/freedreno/drm/msm_ringbuffer.c
src/freedreno/drm/msm_ringbuffer_sp.c