Skip to content

Commit

Permalink
Add EGL_MESA_swap_control_tear
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnk committed Sep 9, 2020
1 parent 5a9a7e3 commit 89019ca
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions extensions/MESA/EGL_MESA_swap_control_tear.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
Name

MESA_swap_control_tear

Name Strings

EGL_MESA_swap_control_tear

Contributors

Adam Jackson <[email protected]>

The contributors to GLX_EXT_swap_control_tear:
Brian Nguyen, NVIDIA, brnguyen at nvidia.com

Contact

Adam Jackson <[email protected]>

Status

DRAFT

Version

Version 1 (9 September 2020)

Number

XXX

Dependencies

EGL 1.1 or greater is required for eglSwapInterval.

This specification is written against the EGL 1.5 specification.

Overview

This extension extends EGL by allowing a negative <interval> parameter to
eglSwapInterval. The negative <interval> allows late swaps to occur without
synchronization to the video frame. This reduces the visual stutter on late
frames and reduces the stall on subsequent frames.

IP Status

There are no known IP issues.

Issues

1: Should there be queries?

UNRESOLVED. GLX has them (as of GLX_EXT_swap_control), but EGL does not
have any per-surface queries about swap intervals at all.

New Procedures and Functions

None

New Tokens

None

Additions to the EGL 1.5 Specification

In Section 3.10.3 of the EGL specification (Posting Semantics),
to the paragraph beginning:

"If <interval> is set to a value of 0, buffer swaps are not
synchronized to a video frame..."

Append:

"If <interval> is negative, the minimum number of video frames between
buffer swaps is the absolute value of <interval>. In this case, if
abs(<interval>) video frames have already passed from the previous swap
when the swap is ready to be performed, the swap will occur without
synchronization to a video frame. When an unsynchronized swap happens,
the missed frame will count towards the minimum number of video frames
for the next swap."

Errors

None

Version History

1. 09 September 2020 - ajax
Clone from GLX_EXT_swap_control_tear.

0 comments on commit 89019ca

Please sign in to comment.