mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
i915g: Add flag to not send commands to hw
This commit is contained in:
parent
34bd0569d3
commit
2d818ed0f8
3 changed files with 6 additions and 1 deletions
|
|
@ -186,7 +186,10 @@ i915_drm_batchbuffer_flush(struct i915_winsys_batchbuffer *ibatch,
|
|||
#endif
|
||||
|
||||
/* Do the sending to HW */
|
||||
ret = drm_intel_bo_exec(batch->bo, used, NULL, 0, 0);
|
||||
if (i915_drm_winsys(ibatch->iws)->send_cmd)
|
||||
ret = drm_intel_bo_exec(batch->bo, used, NULL, 0, 0);
|
||||
else
|
||||
ret = 0;
|
||||
|
||||
if (ret != 0 || i915_drm_winsys(ibatch->iws)->dump_cmd) {
|
||||
#ifdef INTEL_MAP_BATCHBUFFER
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@ i915_drm_winsys_create(int drmFD)
|
|||
drm_intel_bufmgr_gem_enable_reuse(idws->pools.gem);
|
||||
|
||||
idws->dump_cmd = debug_get_bool_option("INTEL_DUMP_CMD", FALSE);
|
||||
idws->send_cmd = !debug_get_bool_option("INTEL_NO_HW", FALSE);
|
||||
|
||||
return &idws->base;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ struct i915_drm_winsys
|
|||
struct i915_winsys base;
|
||||
|
||||
boolean dump_cmd;
|
||||
boolean send_cmd;
|
||||
|
||||
int fd; /**< Drm file discriptor */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue