[Intel-gfx] [PATCH 19/21] rfc! i965: Add intel_screen::has_fence_fd

Chris Wilson chris at chris-wilson.co.uk
Thu Aug 25 09:08:37 UTC 2016


From: Chad Versace <chad.versace at intel.com>

This bool maps to I915_PARAM_HAS_EXEC_FENCE_FD.

TODO: The i915 param is not yet upstream.  Wait for the kernel interface
  before committing.
---
 src/mesa/drivers/dri/i965/intel_screen.c | 4 ++++
 src/mesa/drivers/dri/i965/intel_screen.h | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 9df888d..1a32295 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1637,6 +1637,10 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
         intel_get_boolean(intelScreen, I915_PARAM_HAS_RESOURCE_STREAMER);
    }
 
+#define I915_PARAM_HAS_EXEC_FENCE 42
+   intelScreen->has_fence_fd =
+     intel_get_boolean(intelScreen, I915_PARAM_HAS_EXEC_FENCE);
+
    return (const __DRIconfig**) intel_screen_make_configs(psp);
 }
 
diff --git a/src/mesa/drivers/dri/i965/intel_screen.h b/src/mesa/drivers/dri/i965/intel_screen.h
index 98f9d24..d167758 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.h
+++ b/src/mesa/drivers/dri/i965/intel_screen.h
@@ -45,8 +45,8 @@ struct intel_screen
    __DRIscreen *driScrnPriv;
 
    bool no_hw;
-
    bool hw_has_swizzling;
+   bool has_fence_fd;
 
    int hw_has_timestamp;
 
-- 
2.9.3



More information about the Intel-gfx mailing list