mesa: allow out-of-order drawing to optimize immediate mode if it's safe
This increases performance by 11-13% in Viewperf11/Catia - first scene. Set allow_draw_out_of_order=true to enable this. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4152>
This commit is contained in:
@@ -1765,6 +1765,7 @@ _mesa_make_current( struct gl_context *newCtx,
|
||||
* changed since the last time this FBO was bound).
|
||||
*/
|
||||
_mesa_update_draw_buffers(newCtx);
|
||||
_mesa_update_allow_draw_out_of_order(newCtx);
|
||||
}
|
||||
if (!newCtx->ReadBuffer || _mesa_is_winsys_fbo(newCtx->ReadBuffer)) {
|
||||
_mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer);
|
||||
|
Reference in New Issue
Block a user