diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-23 14:13:45 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-01-27 17:23:42 -0800 |
commit | 2fa5f28eeef4ce13a48c1998856a115c7e4161ac (patch) | |
tree | 6537902c7be2e9aa82d3afd7f8480ae0f183b845 /shared-core | |
parent | 26ca0bca9bd5e23b1d31bc6dfb6d58b62143447b (diff) |
intel: libdrm support for fence management in execbuf
This patch tries to use the available fence count to figure out whether a
given batch can succeed or not (just like the aperture check).
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/i915_drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/i915_drm.h b/shared-core/i915_drm.h index 04ab4cf5..5456e917 100644 --- a/shared-core/i915_drm.h +++ b/shared-core/i915_drm.h @@ -296,6 +296,7 @@ typedef struct drm_i915_irq_wait { #define I915_PARAM_LAST_DISPATCH 3 #define I915_PARAM_CHIPSET_ID 4 #define I915_PARAM_HAS_GEM 5 +#define I915_PARAM_NUM_FENCES_AVAIL 6 typedef struct drm_i915_getparam { int param; @@ -307,6 +308,7 @@ typedef struct drm_i915_getparam { #define I915_SETPARAM_USE_MI_BATCHBUFFER_START 1 #define I915_SETPARAM_TEX_LRU_LOG_GRANULARITY 2 #define I915_SETPARAM_ALLOW_BATCHBUFFER 3 +#define I915_SETPARAM_NUM_USED_FENCES 4 typedef struct drm_i915_setparam { int param; |