From aaeb8bf497c82efabc4f9b27c319042c0e72d816 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 10 Jan 2014 23:39:19 +0100 Subject: randrproto libfontenc mesa xserver git update 10 Jan 2014 xserver commit a92c6406e7f6c0b74fb1cb9361ad904facc0f722 libfontenc commit 0037a42107b952c9d903719615747e760e4e7247 randrproto commit 1755cbe0f501a86afe515f92bb24e417a1866092 mesa commit 532b1fecd93fd30d3b1b101b55fd2c6e074088ad --- mesalib/docs/dispatch.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mesalib/docs/dispatch.html') diff --git a/mesalib/docs/dispatch.html b/mesalib/docs/dispatch.html index 4b529bc04..aacd01e0c 100644 --- a/mesalib/docs/dispatch.html +++ b/mesalib/docs/dispatch.html @@ -25,7 +25,7 @@ href="#overview">overview of Mesa's implementation.

1. Complexity of GL Dispatch

Every GL application has at least one object called a GL context. -This object, which is an implicit parameter to ever GL function, stores all +This object, which is an implicit parameter to every GL function, stores all of the GL related state for the application. Every texture, every buffer object, every enable, and much, much more is stored in the context. Since an application can have more than one context, the context to be used is @@ -51,7 +51,7 @@ example, glFogCoordf may operate differently depending on whether or not fog is enabled.

In multi-threaded environments, it is possible for each thread to have a -differnt GL context current. This means that poor old glVertex3fv +different GL context current. This means that poor old glVertex3fv has to know which GL context is current in the thread where it is being called.

@@ -207,13 +207,13 @@ few preprocessor defines.

  • If GLX_USE_TLS is defined, method #4 is used.
  • If HAVE_PTHREAD is defined, method #3 is used.
  • If WIN32_THREADS is defined, method #2 is used.
  • -
  • If none of the preceeding are defined, method #1 is used.
  • +
  • If none of the preceding are defined, method #1 is used.
  • Two different techniques are used to handle the various different cases. On x86 and SPARC, a macro called GL_STUB is used. In the preamble of the assembly source file different implementations of the macro are -selected based on the defined preprocessor variables. The assmebly code +selected based on the defined preprocessor variables. The assembly code then consists of a series of invocations of the macros such as:

    @@ -242,7 +242,7 @@ first technique, is to insert #ifdef within the assembly implementation of each function. This makes the assembly file considerably larger (e.g., 29,332 lines for glapi_x86-64.S versus 1,155 lines for glapi_x86.S) and causes simple changes to the function -implementation to generate many lines of diffs. Since the assmebly files +implementation to generate many lines of diffs. Since the assembly files are typically generated by scripts (see below), this isn't a significant problem.

    -- cgit v1.2.3