mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
lib: Remove dead gem_get_num_rings()
No users so time to die. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5acda10e7f
commit
5459374120
@ -1109,44 +1109,6 @@ bool gem_has_llc(int fd)
|
|||||||
return has_llc;
|
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)
|
static bool has_param(int fd, int param)
|
||||||
{
|
{
|
||||||
drm_i915_getparam_t gp;
|
drm_i915_getparam_t gp;
|
||||||
|
@ -134,7 +134,6 @@ bool gem_bo_busy(int fd, uint32_t handle);
|
|||||||
|
|
||||||
/* feature test helpers */
|
/* feature test helpers */
|
||||||
bool gem_has_llc(int fd);
|
bool gem_has_llc(int fd);
|
||||||
int gem_get_num_rings(int fd);
|
|
||||||
bool gem_has_bsd(int fd);
|
bool gem_has_bsd(int fd);
|
||||||
bool gem_has_blt(int fd);
|
bool gem_has_blt(int fd);
|
||||||
bool gem_has_vebox(int fd);
|
bool gem_has_vebox(int fd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user