diff options
author | Rob Clark <robclark@freedesktop.org> | 2016-06-01 14:35:44 -0400 |
---|---|---|
committer | Rob Clark <robclark@freedesktop.org> | 2016-07-20 19:42:21 -0400 |
commit | 904f1361ae11d53ee4d0cf297d38f4c243ee8d69 (patch) | |
tree | ea27244f8f77c4a66b95c2b33da26699840c9adb /freedreno/msm | |
parent | fe07584e050db55d0e41ed52c0c42f5e8ae84315 (diff) |
freedreno: expose kernel driver version
gallium needs to know if the kernel is new enough to support explicit
fencing, dynamically grown ringbuffers, etc.
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Diffstat (limited to 'freedreno/msm')
-rw-r--r-- | freedreno/msm/msm_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/freedreno/msm/msm_bo.c b/freedreno/msm/msm_bo.c index cfaec827..72471df6 100644 --- a/freedreno/msm/msm_bo.c +++ b/freedreno/msm/msm_bo.c @@ -98,7 +98,7 @@ static int msm_bo_madvise(struct fd_bo *bo, int willneed) int ret; /* older kernels do not support this: */ - if (bo->dev->version < 1) + if (bo->dev->version < FD_VERSION_MADVISE) return willneed; ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_MADVISE, &req, sizeof(req)); |