summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--freedreno/freedreno_device.c5
-rw-r--r--freedreno/freedreno_drmif.h5
-rw-r--r--freedreno/freedreno_priv.h2
-rw-r--r--freedreno/msm/msm_bo.c2
4 files changed, 12 insertions, 2 deletions
diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index 3da5c7c1..b99bce2f 100644
--- a/freedreno/freedreno_device.c
+++ b/freedreno/freedreno_device.c
@@ -140,3 +140,8 @@ int fd_device_fd(struct fd_device *dev)
{
return dev->fd;
}
+
+enum fd_version fd_device_version(struct fd_device *dev)
+{
+ return dev->version;
+}
diff --git a/freedreno/freedreno_drmif.h b/freedreno/freedreno_drmif.h
index 15ae0756..af5e1dac 100644
--- a/freedreno/freedreno_drmif.h
+++ b/freedreno/freedreno_drmif.h
@@ -89,6 +89,11 @@ struct fd_device * fd_device_ref(struct fd_device *dev);
void fd_device_del(struct fd_device *dev);
int fd_device_fd(struct fd_device *dev);
+enum fd_version {
+ FD_VERSION_MADVISE = 1, /* kernel supports madvise */
+ FD_VERSION_UNLIMITED_CMDS = 1, /* submits w/ >4 cmd buffers (growable ringbuffer) */
+};
+enum fd_version fd_device_version(struct fd_device *dev);
/* pipe functions:
*/
diff --git a/freedreno/freedreno_priv.h b/freedreno/freedreno_priv.h
index f3ddd77d..5e8f03d4 100644
--- a/freedreno/freedreno_priv.h
+++ b/freedreno/freedreno_priv.h
@@ -83,7 +83,7 @@ struct fd_bo_cache {
struct fd_device {
int fd;
- int version;
+ enum fd_version version;
atomic_t refcnt;
/* tables to keep track of bo's, to avoid "evil-twin" fd_bo objects:
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));
option> Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-09-02Version 24.2.6.2, tag libreoffice-24.2.6.2libreoffice-24.2.6.2Christian Lohmaier0-0/+0
2024-08-30update translations for 24.2.6 rc2libreoffice-24-2-6Christian Lohmaier197-2935/+2885
2024-08-18Branch libreoffice-24-2-6Christian Lohmaier0-0/+0
2024-08-18update translations for 24.2.6 rc1Christian Lohmaier746-17182/+18007
2024-07-10update translations for 24.2.5 rc2Christian Lohmaier195-2778/+2804
2024-06-30update translations for 24.2.5 rc1Christian Lohmaier237-1516/+1421
2024-06-27update translations for 24.2.5 rc1Christian Lohmaier415-5218/+5205
2024-06-04update translations for 24.2.4 rc2Christian Lohmaier90-793/+781
2024-05-31update translations for 24.2.4 rc2Christian Lohmaier486-33672/+32762
2024-05-21update translations for 24.2.4 rc1Christian Lohmaier529-32993/+29625
2024-04-29update translations for 24.2.3 rc2Christian Lohmaier309-5301/+5274
2024-04-11update translations for 24.2.3 rc1Christian Lohmaier81-860/+829
2024-04-09update translations for 24.2.3 rc1Christian Lohmaier523-5055/+4725
2024-03-22update translations for 24.2.2 rc2Christian Lohmaier111-677/+662
2024-03-18bump copyright year for sl translationChristian Lohmaier2-4/+4
2024-03-18update translations for 24-2 and force-fix errors using pocheckChristian Lohmaier521-8071/+8016
2024-03-07update translations for 24.2.2 rc1Christian Lohmaier263-4995/+4896
2024-02-25update translations for 24.2.1 rc2Christian Lohmaier276-5469/+5410
2024-02-09update translations for 24.2.1 rc1cp-24.04.0-1Christian Lohmaier34-497/+476
2024-02-08update translations for 24.2.1 rc1Christian Lohmaier291-7745/+7428
2024-01-26update translations for 24.2.0 rc3Christian Lohmaier13-196/+196
2024-01-25update translations for 24.2.0 rc3Christian Lohmaier631-33232/+15659
2024-01-23Updated Slovenian translationMartin Srebotnjak4-248/+80
2024-01-22update sl translation for gerrit#161999Christian Lohmaier1-2/+2
2024-01-11update translations for master/24.2.0 rc1co-24.04-branch-pointChristian Lohmaier78-1234/+1150
2024-01-10Updated Slovenian translationMartin Srebotnjak19-91/+127
2024-01-10update translations for master/24-2Christian Lohmaier267-5889/+8163
2024-01-10add translations for Armenian (hy)Christian Lohmaier158-0/+273799
2024-01-10update translations for master/24-2Christian Lohmaier115-1769/+2348
2024-01-08update translations for master/24-2Christian Lohmaier914-17234/+21265
2023-12-30Updated Slovenian translationMartin Srebotnjak37-651/+1998
2023-12-21update translations for master/24.2.0 RC1Christian Lohmaier1440-36867/+87000
2023-12-20Updated Slovenian translationMartin Srebotnjak48-1612/+4963
2023-12-15update translations for master/24-2Christian Lohmaier1551-39007/+124820
2023-12-08Branch libreoffice-24-2Christian Lohmaier0-0/+0
2023-12-08update translations for master/24.2.0 Beta1libreoffice-24-2-branch-pointChristian Lohmaier53-466/+477
2023-12-07update translations for master/24.2.0 beta1Christian Lohmaier499-7052/+13102
2023-12-04update translations for masterChristian Lohmaier258-7146/+8658
2023-12-04update translations for masterChristian Lohmaier3565-257579/+431237
2023-11-30update translations for masterXisco Fauli198-4875/+4861
2023-11-23update translations for masterXisco Fauli51-1332/+1330
2023-11-23Updated Slovenian translationMartin Srebotnjak51-13811/+21418
2023-11-21update translations for masterXisco Fauli904-51173/+45191
2023-11-08update translations for masterChristian Lohmaier921-43573/+49527
2023-11-02update translations for masterChristian Lohmaier2450-251413/+438677
2023-10-11update translations for masterChristian Lohmaier