egl/x11: Re-order an if statement
Switch on kopper first so it's easier to do other, common things on the
kopper path.
Fixes: 8ade5588e3 ("zink: add kopper api")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34015>
This commit is contained in:
committed by
Marge Bot
parent
2e3b23539e
commit
dc8714c568
@@ -1132,14 +1132,14 @@ dri2_x11_kopper_swap_buffers_with_damage(_EGLDisplay *disp, _EGLSurface *draw,
|
||||
struct dri2_egl_surface *dri2_surf = dri2_egl_surface(draw);
|
||||
/* swrast path unsupported for now */
|
||||
assert(dri2_dpy->kopper);
|
||||
if (numRects) {
|
||||
if (dri2_dpy->kopper)
|
||||
if (dri2_dpy->kopper) {
|
||||
if (numRects)
|
||||
kopperSwapBuffersWithDamage(dri2_surf->dri_drawable, __DRI2_FLUSH_INVALIDATE_ANCILLARY, numRects, rects);
|
||||
else
|
||||
driSwapBuffersWithDamage(dri2_surf->dri_drawable, numRects, rects);
|
||||
} else {
|
||||
if (dri2_dpy->kopper)
|
||||
kopperSwapBuffers(dri2_surf->dri_drawable, __DRI2_FLUSH_INVALIDATE_ANCILLARY);
|
||||
} else {
|
||||
if (numRects)
|
||||
driSwapBuffersWithDamage(dri2_surf->dri_drawable, numRects, rects);
|
||||
else
|
||||
driSwapBuffers(dri2_surf->dri_drawable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user