[Mesa-dev] [PATCH 11/13] rfc! i965: Add intel_screen::has_fence_fd
Chad Versace
chad.versace at intel.com
Sat Jul 9 00:01:01 UTC 2016
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 | 3 +++
src/mesa/drivers/dri/i965/intel_screen.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 432ab7b..5a2cee1 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -1637,6 +1637,9 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
intel_get_boolean(intelScreen, I915_PARAM_HAS_RESOURCE_STREAMER);
}
+ intelScreen->has_fence_fd =
+ intel_get_boolean(intelScreen, I915_PARAM_HAS_EXEC_FENCE_FD);
+
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.0.rc2
More information about the mesa-dev
mailing list