drm/state-propose: Reduce variable scope
Reduce the scope of surface_overlap to where it's actually used, which is only in the per-view loop, where it gets initialised and destroyed every time. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
@@ -769,7 +769,7 @@ drm_output_propose_state(struct weston_output *output_base,
|
|||||||
struct drm_plane_state *scanout_state = NULL;
|
struct drm_plane_state *scanout_state = NULL;
|
||||||
struct weston_view *ev;
|
struct weston_view *ev;
|
||||||
|
|
||||||
pixman_region32_t surface_overlap, renderer_region;
|
pixman_region32_t renderer_region;
|
||||||
pixman_region32_t occluded_region;
|
pixman_region32_t occluded_region;
|
||||||
|
|
||||||
bool renderer_ok = (mode != DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY);
|
bool renderer_ok = (mode != DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY);
|
||||||
@@ -844,6 +844,7 @@ drm_output_propose_state(struct weston_output *output_base,
|
|||||||
struct drm_plane_state *ps = NULL;
|
struct drm_plane_state *ps = NULL;
|
||||||
bool force_renderer = false;
|
bool force_renderer = false;
|
||||||
pixman_region32_t clipped_view;
|
pixman_region32_t clipped_view;
|
||||||
|
pixman_region32_t surface_overlap;
|
||||||
bool totally_occluded = false;
|
bool totally_occluded = false;
|
||||||
|
|
||||||
drm_debug(b, "\t\t\t[view] evaluating view %p for "
|
drm_debug(b, "\t\t\t[view] evaluating view %p for "
|
||||||
|
|||||||
Reference in New Issue
Block a user