Expand gem_set_cacheing testing to handle the proposed DISPLAY domain

This commit is contained in:
Chris Wilson
2013-08-10 15:49:33 +01:00
parent dbbf2e9b24
commit 467796acc8
7 changed files with 173 additions and 90 deletions
+2 -2
View File
@@ -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
View File
@@ -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);