mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 16:26:13 +00:00
lib: Have gem_set_tiling require intel
Before calling a i915-specific IOCTL, require i915. This allows us to skip subtests that are specific to that driver, though what should eventually happen is that tests don't generally call gem_set_tiling directly but go through an abstraction layer that constructs the buffer object in a driver-specific way. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
3fee80efcf
commit
6755757e9f
@ -141,6 +141,8 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride)
|
||||
struct drm_i915_gem_set_tiling st;
|
||||
int ret;
|
||||
|
||||
igt_require_intel(fd);
|
||||
|
||||
memset(&st, 0, sizeof(st));
|
||||
do {
|
||||
st.handle = handle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user