mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
Expand gem_set_cacheing testing to handle the proposed DISPLAY domain
This commit is contained in:
+2
-2
@@ -408,7 +408,7 @@ int gem_has_cacheing(int fd)
|
||||
return ret == 0;
|
||||
}
|
||||
|
||||
void gem_set_cacheing(int fd, uint32_t handle, int cacheing)
|
||||
int gem_set_cacheing(int fd, uint32_t handle, int cacheing)
|
||||
{
|
||||
struct local_drm_i915_gem_cacheing arg;
|
||||
int ret;
|
||||
@@ -416,7 +416,7 @@ void gem_set_cacheing(int fd, uint32_t handle, int cacheing)
|
||||
arg.handle = handle;
|
||||
arg.cacheing = cacheing;
|
||||
ret = ioctl(fd, LOCAL_DRM_IOCTL_I915_GEM_SET_CACHEING, &arg);
|
||||
assert(ret == 0);
|
||||
return ret == 0 ? 0 : -errno;
|
||||
}
|
||||
|
||||
int gem_get_cacheing(int fd, uint32_t handle)
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ bool gem_has_blt(int fd);
|
||||
bool gem_has_vebox(int fd);
|
||||
int gem_get_num_rings(int fd);
|
||||
int gem_has_cacheing(int fd);
|
||||
void gem_set_cacheing(int fd, uint32_t handle, int cacheing);
|
||||
int gem_set_cacheing(int fd, uint32_t handle, int cacheing);
|
||||
int gem_get_cacheing(int fd, uint32_t handle);
|
||||
uint32_t gem_flink(int fd, uint32_t handle);
|
||||
uint32_t gem_open(int fd, uint32_t name);
|
||||
|
||||
Reference in New Issue
Block a user