iris: support INTEL_NO_HW environment variable

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Mike Blumenkrantz
2019-04-09 12:40:06 -04:00
committed by Kenneth Graunke
parent 7295487c6d
commit 03d6d01fe2
3 changed files with 6 additions and 1 deletions

View File

@@ -491,7 +491,7 @@ submit_batch(struct iris_batch *batch)
(uintptr_t)util_dynarray_begin(&batch->exec_fences);
}
int ret = drm_ioctl(batch->screen->fd,
int ret = batch->screen->no_hw ? 0 : drm_ioctl(batch->screen->fd,
DRM_IOCTL_I915_GEM_EXECBUFFER2,
&execbuf);
if (ret != 0) {