diff options
author | Rob Clark <[email protected]> | 2018-11-28 08:50:19 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-12-13 15:51:01 -0500 |
commit | 7ef722861b691ce99be3827ed05f8c0ddf2cd66e (patch) | |
tree | 6c5d3a541dbb7c596af6c61ca26c5096e8f654ba /src/freedreno/drm/msm_bo.c | |
parent | 4407e688cdf65b1a25f09bcfdb577d5c175aeb9a (diff) |
freedreno/drm: sync uapi and enable softpin
Pull in updated UAPI and use kernel API version to enable softpin.
Since MSM_SUBMIT_BO_DUMP flag was added at same time, use that to
signal to kernel that cmdstream buffers are useful to dump for
debugging/cmdstream-traces.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/drm/msm_bo.c')
-rw-r--r-- | src/freedreno/drm/msm_bo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/freedreno/drm/msm_bo.c b/src/freedreno/drm/msm_bo.c index d93dfbeab2e..95f888b6cf6 100644 --- a/src/freedreno/drm/msm_bo.c +++ b/src/freedreno/drm/msm_bo.c @@ -32,6 +32,7 @@ static int bo_allocate(struct msm_bo *msm_bo) if (!msm_bo->offset) { struct drm_msm_gem_info req = { .handle = bo->handle, + .info = MSM_INFO_GET_OFFSET, }; int ret; @@ -46,7 +47,7 @@ static int bo_allocate(struct msm_bo *msm_bo) return ret; } - msm_bo->offset = req.offset; + msm_bo->offset = req.value; } return 0; @@ -106,14 +107,14 @@ static uint64_t msm_bo_iova(struct fd_bo *bo) { struct drm_msm_gem_info req = { .handle = bo->handle, - .flags = MSM_INFO_IOVA, + .info = MSM_INFO_GET_IOVA, }; int ret; ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, &req, sizeof(req)); debug_assert(ret == 0); - return req.offset; + return req.value; } static void msm_bo_destroy(struct fd_bo *bo) |