summaryrefslogtreecommitdiff
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
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>
-rw-r--r--lib/ioctl_wrappers.c38
-rw-r--r--lib/ioctl_wrappers.h1
2 files changed, 0 insertions, 39 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;
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index 70769891..c25c4e21 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -134,7 +134,6 @@ bool gem_bo_busy(int fd, uint32_t handle);
/* feature test helpers */
bool gem_has_llc(int fd);
-int gem_get_num_rings(int fd);
bool gem_has_bsd(int fd);
bool gem_has_blt(int fd);
bool gem_has_vebox(int fd);