summaryrefslogtreecommitdiff
path: root/lib/ioctl_wrappers.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-14 14:00:32 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-14 14:17:12 +0000
commit5459374120fd1c7d89ec50e2c59df23a126b5dcb (patch)
tree40fac68cb588ac7b4f786a25a2a51d74e71d3bdc /lib/ioctl_wrappers.c
parent5acda10e7f794cf136f2daebcf4ca66a0ae9324b (diff)
lib: Remove dead gem_get_num_rings()
No users so time to die. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r--lib/ioctl_wrappers.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 25471949..fc1fd4e7 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -1109,44 +1109,6 @@ bool gem_has_llc(int fd)
return has_llc;
}
-/**
- * gem_get_num_rings:
- * @fd: open i915 drm file descriptor
- *
- * Feature test macro to query the number of available rings. This is useful in
- * test loops which need to step through all rings and similar logic.
- *
- * For more explicit tests of ring availability see the ring specific versions
- * like gem_has_ring() and for example gem_has_bsd().
- *
- * Returns: The number of available rings.
- */
-int gem_get_num_rings(int fd)
-{
- static int num_rings = -1;
-
- if (num_rings < 0) {
- num_rings = 1; /* render ring is always available */
-
- if (gem_has_bsd(fd))
- num_rings++;
- else
- goto skip;
-
- if (gem_has_blt(fd))
- num_rings++;
- else
- goto skip;
-
- if (gem_has_vebox(fd))
- num_rings++;
- else
- goto skip;
- }
-skip:
- return num_rings;
-}
-
static bool has_param(int fd, int param)
{
drm_i915_getparam_t gp;