File: ANGLE_program_binary_readiness_query.txt

package info (click to toggle)
webkit2gtk 2.50.1-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 445,776 kB
  • sloc: cpp: 3,798,329; javascript: 197,914; ansic: 161,337; python: 49,141; asm: 21,987; ruby: 18,540; perl: 16,723; xml: 4,623; yacc: 2,360; sh: 2,246; java: 2,019; lex: 1,327; pascal: 366; makefile: 289
file content (95 lines) | stat: -rw-r--r-- 2,400 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Name

    ANGLE_program_binary_readiness_query

Name Strings

    GL_ANGLE_program_binary_readiness_query

Contributors

    Shahbaz Youssefi, Google

Contact

    Shahbaz Youssefi (syoussefi 'at' google.com)

Notice

    Copyright (c) 2024 The Khronos Group Inc. Copyright terms at
        http://www.khronos.org/registry/speccopyright.html

Status

    Draft

Version

    Version 1, April 9, 2024

Number

    OpenGL ES Extension #??

Dependencies

    Requires OpenGL ES 2.0

    Written against the OpenGL ES 2.0 specification.

Overview

    After a program is linked, its binary can be queried by a call to
    GetProgramBinary.  In ANGLE, binary data may not necessarily be readily
    available after link, for example because post-link tasks are filling in
    caches that make the binary more useful.  Calling GetProgramBinary in
    such cases can lead to a CPU wait.

    Ideally, applications should query the program binary after having used the
    program with all graphics states it may be used in during the lifetime of
    the application (often, that is after one frame).  In that case, any binary
    that may be generated and cached due to the state combinations is
    associated with program's binary, making the next run of the application
    fully hit the caches.

    Nevertheless, this extension provides a query for the application to know
    when ANGLE's best-guess binaries are cached and the program binary is ready
    for retrieval.  As long as this query returns FALSE, the application should
    defer calling GetProgramBinary, or GetProgramiv with PROGRAM_BINARY_LENGTH
    to avoid getting blocked on the CPU.

New Procedures and Functions

    None

New Tokens

    Accepted by the <pname> parameters of GetProgramiv:

    PROGRAM_BINARY_READY_ANGLE            0x96BE

Additions to the OpenGL ES Specification

    Append to paragraph 8 of section 6.1.8 "Shader and Program Queries"
    (description of GetProgramiv):

    If pname is PROGRAM_BINARY_READY_ANGLE, TRUE is returned if a call to
    GetProgramBinary will not block, and FALSE is returned otherwise.

New State

    None

Conformance Tests

    TBD

Issues

    None

Revision History

    Rev.    Date         Author                 Changes
    ----  -------------  ---------              ----------------------------------------
      1   Apr 09, 2024   syoussefi              Initial version