From: Chad Versace Date: Fri, 13 Jan 2017 18:46:48 +0000 (-0800) Subject: i965: Add intel_screen::has_fence_fd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=358661c794573b9a361309d477fe09880773ef73;p=mesa.git i965: Add intel_screen::has_fence_fd This bool maps to I915_PARAM_HAS_EXEC_FENCE_FD. Reviewed-by: Rafael Antognolli Tested-by: Rafael Antognolli Acked-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 5f800008c17..469d16cba66 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1817,6 +1817,9 @@ __DRIconfig **intelInitScreen2(__DRIscreen *dri_screen) intel_get_boolean(screen, I915_PARAM_HAS_RESOURCE_STREAMER); } + screen->has_exec_fence = + intel_get_boolean(screen, I915_PARAM_HAS_EXEC_FENCE); + return (const __DRIconfig**) intel_screen_make_configs(dri_screen); } diff --git a/src/mesa/drivers/dri/i965/intel_screen.h b/src/mesa/drivers/dri/i965/intel_screen.h index 890dd9044b1..a1e2b31774c 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.h +++ b/src/mesa/drivers/dri/i965/intel_screen.h @@ -47,8 +47,8 @@ struct intel_screen uint64_t max_gtt_map_object_size; bool no_hw; - bool hw_has_swizzling; + bool has_exec_fence; /**< I915_PARAM_HAS_EXEC_FENCE */ int hw_has_timestamp;