i965: Add intel_screen::has_fence_fd
authorChad Versace <chadversary@chromium.org>
Fri, 13 Jan 2017 18:46:48 +0000 (10:46 -0800)
committerChad Versace <chadversary@chromium.org>
Fri, 27 Jan 2017 21:10:06 +0000 (13:10 -0800)
This bool maps to I915_PARAM_HAS_EXEC_FENCE_FD.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h

index 5f800008c176eedcff549084034ad8957719888d..469d16cba66f6ccc750f610592a00aeb384bb86c 100644 (file)
@@ -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);
 }
 
index 890dd9044b19bf1b9ac727efe23ef8f411135af5..a1e2b31774c874e89476f3d5acc022b38697fce7 100644 (file)
@@ -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;