From 4f963b03a1015c87813a7215bae20e8ba2e088a2 Mon Sep 17 00:00:00 2001 From: James Xiong Date: Mon, 14 Oct 2019 10:05:46 +0200 Subject: gallium: rename PIPE_CAP_MAX_FRAMES_IN_FLIGHT to PIPE_CAP_THROTTLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2: [ Michel Dänzer ] * Update src/gallium/docs/source/screen.rst accordingly Signed-off-by: James Xiong Reviewed-by: Michel Dänzer # v1 Reviewed-by: Marek Olšák # v1 --- src/gallium/state_trackers/dri/dri2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 6acfc6aa977..960065ffa23 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -2057,8 +2057,7 @@ dri2_init_screen(__DRIscreen * sPriv) if (!pscreen) goto release_pipe; - screen->throttle = - pscreen->get_param(pscreen, PIPE_CAP_MAX_FRAMES_IN_FLIGHT) > 0; + screen->throttle = pscreen->get_param(pscreen, PIPE_CAP_THROTTLE); if (pscreen->resource_create_with_modifiers) dri2ImageExtension.createImageWithModifiers = -- cgit v1.2.3