diff options
Diffstat (limited to 'mesalib')
87 files changed, 2029 insertions, 1608 deletions
diff --git a/mesalib/Makefile.am b/mesalib/Makefile.am index 59fd9b584..9c9e9f6cf 100644 --- a/mesalib/Makefile.am +++ b/mesalib/Makefile.am @@ -19,13 +19,16 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -SUBDIRS = src tests +SUBDIRS = src doxygen: cd doxygen && $(MAKE) check-local: + $(MAKE) -C src/mapi/glapi/tests check + $(MAKE) -C src/mesa/main/tests check $(MAKE) -C src/glsl/tests check + $(MAKE) -C src/glx/tests check clean-local: -@touch $(top_builddir)/configs/current @@ -56,8 +59,6 @@ PACKAGE_NAME = MesaLib-$(PACKAGE_VERSION) EXTRA_FILES = \ aclocal.m4 \ configure \ - tests/Makefile.in \ - tests/glx/Makefile.in \ src/glsl/glsl_parser.cpp \ src/glsl/glsl_parser.h \ src/glsl/glsl_lexer.cpp \ diff --git a/mesalib/bin/shortlog_mesa.sh b/mesalib/bin/shortlog_mesa.sh new file mode 100644 index 000000000..b20c52fdd --- /dev/null +++ b/mesalib/bin/shortlog_mesa.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# This script is used to generate the list of changes that +# appears in the release notes files, with HTML formatting. + + +typeset -i in_log=0 + +git shortlog $* | while read l +do + if [ $in_log -eq 0 ]; then + echo '<p>'$l'</p>' + echo '<ul>' + in_log=1 + elif echo "$l" | egrep -q '^$' ; then + echo '</ul>' + echo + in_log=0 + else + mesg=$(echo $l | sed 's/ (cherry picked from commit [0-9a-f]\+)//;s/\&/&/g;s/</\</g;s/>/\>/g') + echo ' <li>'${mesg}'</li>' + fi +done diff --git a/mesalib/configure.ac b/mesalib/configure.ac index 29ee87bb0..d5f8cd719 100644 --- a/mesalib/configure.ac +++ b/mesalib/configure.ac @@ -2166,9 +2166,12 @@ AC_CONFIG_FILES([configs/autoconf src/egl/wayland/wayland-drm/Makefile src/glsl/tests/Makefile src/glx/Makefile + src/glx/tests/Makefile src/mapi/shared-glapi/Makefile + src/mapi/glapi/tests/Makefile src/gtest/Makefile src/mesa/libdricore/Makefile + src/mesa/main/tests/Makefile src/mesa/drivers/dri/dri.pc src/mesa/drivers/dri/Makefile src/mesa/drivers/dri/common/Makefile @@ -2177,9 +2180,7 @@ AC_CONFIG_FILES([configs/autoconf src/mesa/drivers/dri/nouveau/Makefile src/mesa/drivers/dri/r200/Makefile src/mesa/drivers/dri/radeon/Makefile - src/mesa/drivers/dri/swrast/Makefile - tests/Makefile - tests/glx/Makefile]) + src/mesa/drivers/dri/swrast/Makefile]) dnl Replace the configs/current symlink AC_CONFIG_COMMANDS([configs],[ diff --git a/mesalib/docs/autoconf.html b/mesalib/docs/autoconf.html index 07a966e05..4f1ad8d64 100644 --- a/mesalib/docs/autoconf.html +++ b/mesalib/docs/autoconf.html @@ -1,12 +1,12 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ><html LANG=en> - -<title>Compilation and Installation using Autoconf</title> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Compilation and Installation using Autoconf</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> <body> - <h1>Compilation and Installation using Autoconf</h1> <ol> @@ -209,7 +209,6 @@ options are 16- and 32-bit color channels, which will add the bit size to the library name. For example, <code>--with-osmesa-bits=16</code> will create the libOSMesa16 library with a 16-bit color channel. </dl> -</dl> <h2 id="library">3. Library Options</h2> diff --git a/mesalib/docs/banner.html b/mesalib/docs/banner.html index 4f12c7ac6..2ec187bb9 100644 --- a/mesalib/docs/banner.html +++ b/mesalib/docs/banner.html @@ -1,27 +1,33 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> -<html LANG=en> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> <head> - <title>Banner</title -><STYLE TYPE="TEXT/CSS" ><!-- -BODY { BACKGROUND: BLACK; COLOR: WHITE } TABLE { width: 94%; text-align: left; } -TD { vertical-align: top } -H1 { -FONT: X-LARGE sans-serif; TEXT-ALIGN: CENTER; -HEIGHT: 75PX; MARGIN-LEFT: 100PX; MARGIN-RIGHT: 100PX } -.gears { WIDTH: 100PX; HEIGHT: 73PX; FLOAT: LEFT; BACKGROUND: URL('gears.png') RIGHT NO-REPEAT } -DIV + .gears { FLOAT: RIGHT; BACKGROUND-POSITION: LEFT } -/* -This should happen in the future instead: -H1 { -BORDER-LEFT: 71PX SOLID #C11800; BORDER-RIGHT: 71PX SOLID #00C130; -BORDER-TOP: 0PX; BORDER-BOTTOM: 0PX; -border-image: url(gears.png) 100%; -WEBKIT-border-image: url(gears.png) 100%; -} -*/ -} ---></STYLE > + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Banner</title> + <style type="text/css"> + <!-- + body { background: black; color: white } + h1 { + font: x-large sans-serif; text-align: center; + height: 75px; margin-left: 100px; margin-right: 100px } + .gears { width: 100px; height: 73px; float: left; background: url('gears.png') right no-repeat } + div + .gears { float: right; background-position: left } + /* + This should happen in the future instead: + h1 { + border-left: 71px solid #c11800; border-right: 71px solid #00c130; + border-top: 0px; border-bottom: 0px; + border-image: url(gears.png) 100%; -webkit-border-image: url(gears.png) 100%; + } + */ + --> + </style> </head> -<body ><DIV CLASS="gears" ></DIV ><DIV CLASS="gears" ></DIV ><H1 >The -Mesa 3D Graphics Library</H1 > + +<body> + +<div class="gears"></div> +<div class="gears"></div> +<h1>The Mesa 3D Graphics Library</h1> + </body> </html> diff --git a/mesalib/docs/bugs.html b/mesalib/docs/bugs.html index fa7c484cd..c5ed16d42 100644 --- a/mesalib/docs/bugs.html +++ b/mesalib/docs/bugs.html @@ -1,13 +1,13 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > -<HTML LANG=en > +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Bug Reporting</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Bug Reporting</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Bug Database</H1> +<h1>Bug Database</h1> <p> The Mesa bug database is hosted on @@ -50,5 +50,5 @@ If your bug report is vague or your test program doesn't compile easily, the problem may not be fixed very quickly. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/conform.html b/mesalib/docs/conform.html index 3611f8c6f..51674e8d4 100644 --- a/mesalib/docs/conform.html +++ b/mesalib/docs/conform.html @@ -1,12 +1,13 @@ -<HTML> - -<TITLE>Conformance</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Conformance</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Conformance</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<h1>Conformance</h1> <p> The SGI OpenGL conformance tests verify correct operation of OpenGL diff --git a/mesalib/docs/contents.html b/mesalib/docs/contents.html index 6f556eed9..e7a23a6bc 100644 --- a/mesalib/docs/contents.html +++ b/mesalib/docs/contents.html @@ -1,33 +1,35 @@ -<html> - -<title>Contents</title> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<!--Override a few values from the style sheet: --> -<style> -<!-- -body { - background-color: #cccccc; - color: black; -} -a:link { - color: #000; -} -a:visited { - color: #000; -} ---> -</style> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Contents</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> + <!--Override a few values from the style sheet: --> + <style type="text/css"> + <!-- + body { + background-color: #cccccc; + color: black; + } + a:link { + color: #000; + } + a:visited { + color: #000; + } + --> + </style> +</head> +<body> <b>Documentation</b> <ul> <li><a href="intro.html" target="MainFrame">Introduction</a> <li><a href="news.html" target="MainFrame">News</a> -<LI><A HREF="developers.html" target="MainFrame">Developers</A> +<li><a href="developers.html" target="MainFrame">Developers</a> <li><a href="systems.html" target="MainFrame">Platforms and Drivers</a> -<li><a href="license.html" target="MainFrame">License & Copyright</a> +<li><a href="license.html" target="MainFrame">License & Copyright</a> <li><a href="faq.html" target="MainFrame">FAQ</a> <li><a href="relnotes.html" target="MainFrame">Release Notes</a> <li><a href="thanks.html" target="MainFrame">Acknowledgements</a> @@ -55,16 +57,16 @@ a:visited { <li><a href="egl.html" target="MainFrame">EGL</a> <li><a href="opengles.html" target="MainFrame">OpenGL ES</a> <li><a href="openvg.html" target="MainFrame">OpenVG / Vega</a> -<LI><A HREF="envvars.html" target="MainFrame">Environment Variables</A> -<LI><A HREF="osmesa.html" target="MainFrame">Off-Screen Rendering</A> -<LI><A HREF="debugging.html" target="MainFrame">Debugging Tips</A> -<LI><A HREF="perf.html" target="MainFrame">Performance Tips</A> -<LI><A HREF="extensions.html" target="MainFrame">Mesa Extensions</A> -<LI><A HREF="mangling.html" target="MainFrame">Function Name Mangling</A> -<LI><A href="llvmpipe.html" target="MainFrame">Gallium llvmpipe driver</A> -<LI><A href="vmware-guest.html" target="MainFrame">VMware SVGA3D guest driver</a> -<LI><A href="postprocess.html" target="MainFrame">Gallium post-processing</A> -<LI><A href="viewperf.html" target="MainFrame">Viewperf Issues</A> +<li><a href="envvars.html" target="MainFrame">Environment Variables</a> +<li><a href="osmesa.html" target="MainFrame">Off-Screen Rendering</a> +<li><a href="debugging.html" target="MainFrame">Debugging Tips</a> +<li><a href="perf.html" target="MainFrame">Performance Tips</a> +<li><a href="extensions.html" target="MainFrame">Mesa Extensions</a> +<li><a href="mangling.html" target="MainFrame">Function Name Mangling</a> +<li><a href="llvmpipe.html" target="MainFrame">Gallium llvmpipe driver</a> +<li><a href="vmware-guest.html" target="MainFrame">VMware SVGA3D guest driver</a> +<li><a href="postprocess.html" target="MainFrame">Gallium post-processing</a> +<li><a href="viewperf.html" target="MainFrame">Viewperf Issues</a> </ul> <b>Developer Topics</b> @@ -96,9 +98,9 @@ a:visited { <b>Hosted by:</b> <br> <blockquote> -<A HREF="http://sourceforge.net" -target="_parent"><IMG SRC="http://sourceforge.net/sflogo.php?group_id=3&type=1" -WIDTH="88" HEIGHT="31" ALIGN="BOTTOM" ALT="Sourceforge.net" BORDER="0"></A> +<a href="http://sourceforge.net" +target="_parent"><img src="http://sourceforge.net/sflogo.php?group_id=3&type=1" +width="88" height="31" align="bottom" alt="Sourceforge.net" border="0"></a> </blockquote> </body> diff --git a/mesalib/docs/debugging.html b/mesalib/docs/debugging.html index 2df62f56e..36d3634ba 100644 --- a/mesalib/docs/debugging.html +++ b/mesalib/docs/debugging.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Debugging Tips</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Debugging Tips</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Debugging Tips</H1> +<h1>Debugging Tips</h1> <p> Normally Mesa (and OpenGL) records but does not notify the user of @@ -34,5 +35,5 @@ src/dlist.c for details. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/developers.html b/mesalib/docs/developers.html index 8960e7cb4..e1c52ac0d 100644 --- a/mesalib/docs/developers.html +++ b/mesalib/docs/developers.html @@ -1,12 +1,13 @@ -<HTML> - -<TITLE>Developers</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Developers</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Developers</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<h1>Developers</h1> <p> Both professional and volunteer developers contribute to Mesa. diff --git a/mesalib/docs/devinfo.html b/mesalib/docs/devinfo.html index 678e48c01..4828cc61d 100644 --- a/mesalib/docs/devinfo.html +++ b/mesalib/docs/devinfo.html @@ -1,15 +1,16 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Development Notes</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Development Notes</TITLE> +<h1>Development Notes</h1> -<link rel="stylesheet" type="text/css" href="mesa.css"></head> -<BODY> - -<H1>Development Notes</H1> - - -<H2>Adding Extentions</H2> +<h2>Adding Extentions</h2> <p> To add a new GL extension to Mesa you have to do at least the following. @@ -52,7 +53,7 @@ To add a new GL extension to Mesa you have to do at least the following. -<H2>Coding Style</H2> +<h2>Coding Style</h2> <p> Mesa's code style has changed over the years. Here's the latest. @@ -148,20 +149,20 @@ src/mesa/state_tracker/st_glsl_to_tgsi.cpp can serve as examples. </p> -<H2>Making a New Mesa Release</H2> +<h2>Making a New Mesa Release</h2> <p> These are the instructions for making a new Mesa release. </p> -<H3>Get latest source files</H3> +<h3>Get latest source files</h3> <p> Use git to get the latest Mesa files from the git repository, from whatever branch is relevant. </p> -<H3>Verify and update version info</H3> +<h3>Verify and update version info</h3> <p> Create/edit the docs/relnotes-x.y.html file to document what's new in the release. Add the new relnotes-x.y.html file to <a href="relnotes.html">relnotes.html</a>. @@ -182,7 +183,10 @@ Update docs/news.html. </p> <p> -Check in all updates to git. +Create a docs/relnotes-x.y.z.html file. +The bin/shortlog_mesa.sh script can be used to create a HTML-formatted list +of changes to include in the file. +Link the new docs/relnotes-x.y.z.html file into the main relnotes.html file. </p> <p> @@ -192,7 +196,7 @@ Then: <code>git push origin mesa_X_Y</code> </p> -<H3>Make the tarballs</H3> +<h3>Make the tarballs</h3> <p> Make the distribution files. From inside the Mesa directory: <pre> @@ -210,7 +214,7 @@ Copy the distribution files to a temporary directory, unpack them, compile everything, and run some demos to be sure everything works. </p> -<H3>Update the website and announce the release</H3> +<h3>Update the website and announce the release</h3> <p> Follow the directions on SourceForge for creating a new "release" and uploading the tarballs. @@ -242,7 +246,5 @@ and <em>m</em><em>e</em><em>s</em><em>a</em><em>-</em><em>a</em><em>n</em><em>n</em><em>o</em><em>u</em><em>n</em><em>c</em><em>e</em><em>@</em><em>l</em><em>i</em><em>s</em><em>t</em><em>s</em><em>.</em><em>f</em><em>r</em><em>e</em><em>e</em><em>d</em><em>e</em><em>s</em><em>k</em><em>t</em><em>o</em><em>p</em><em>.</em><em>o</em><em>r</em><em>g</em> </p> - - </body> </html> diff --git a/mesalib/docs/dispatch.html b/mesalib/docs/dispatch.html index 620aecd74..e40b41a60 100644 --- a/mesalib/docs/dispatch.html +++ b/mesalib/docs/dispatch.html @@ -1,19 +1,20 @@ -<HTML> -<HEAD> -<TITLE>GL Dispatch in Mesa</TITLE> -<LINK REL="stylesheet" TYPE="text/css" HREF="mesa.css"> -</HEAD> - -<BODY> -<H1>GL Dispatch in Mesa</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>GL Dispatch in Mesa</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> +<h1>GL Dispatch in Mesa</h1> <p>Several factors combine to make efficient dispatch of OpenGL functions fairly complicated. This document attempts to explain some of the issues and introduce the reader to Mesa's implementation. Readers already familiar -with the issues around GL dispatch can safely skip ahead to the <A -HREF="#overview">overview of Mesa's implementation</A>.</p> +with the issues around GL dispatch can safely skip ahead to the <a +href="#overview">overview of Mesa's implementation</a>.</p> -<H2>1. Complexity of GL Dispatch</H2> +<h2>1. Complexity of GL Dispatch</h2> <p>Every GL application has at least one object called a GL <em>context</em>. This object, which is an implicit parameter to ever GL function, stores all @@ -46,8 +47,7 @@ differnt GL context current. This means that poor old <tt>glVertex3fv</tt> has to know which GL context is current in the thread where it is being called.</p> -<A NAME="overview"/> -<H2>2. Overview of Mesa's Implementation</H2> +<h2 id="overview">2. Overview of Mesa's Implementation</h2> <p>Mesa uses two per-thread pointers. The first pointer stores the address of the context current in the thread, and the second pointer stores the @@ -75,7 +75,7 @@ table.</li> void glVertex3f(GLfloat x, GLfloat y, GLfloat z) { const struct _glapi_table * const dispatch = GET_DISPATCH(); - + (*dispatch->Vertex3f)(x, y, z); }</pre></td></tr> <tr><td>Sample dispatch function</td></tr></table> @@ -89,14 +89,14 @@ overhead that it adds to every GL function call.</p> similar function. Mesa provides a wrapper function called <tt>_glapi_get_dispatch</tt> that is used by default.</p> -<H2>3. Optimizations</H2> +<h2>3. Optimizations</h2> <p>A number of optimizations have been made over the years to diminish the performance hit imposed by GL dispatch. This section describes these optimizations. The benefits of each optimization and the situations where each can or cannot be used are listed.</p> -<H3>3.1. Dual dispatch table pointers</H3> +<h3>3.1. Dual dispatch table pointers</h3> <p>The vast majority of OpenGL applications use the API in a single threaded manner. That is, the application has only one thread that makes calls into @@ -131,7 +131,7 @@ the common case.</p> <tr><td>Improved <tt>GET_DISPATCH</tt> Implementation</td></tr></table> </blockquote> -<H3>3.2. ELF TLS</H3> +<h3>3.2. ELF TLS</h3> <p>Starting with the 2.4.20 Linux kernel, each thread is allocated an area of per-thread, global storage. Variables can be put in this area using some @@ -161,7 +161,7 @@ extern __thread struct _glapi_table *_glapi_tls_Dispatch <tt>GLX_USE_TLS</tt>. Any platform capable of using TLS should use this as the default dispatch method.</p> -<H3>3.3. Assembly Language Dispatch Stubs</H3> +<h3>3.3. Assembly Language Dispatch Stubs</h3> <p>Many platforms has difficulty properly optimizing the tail-call in the dispatch stubs. Platforms like x86 that pass parameters on the stack seem @@ -170,7 +170,7 @@ routines are very short, and it is trivial to create optimal assembly language versions. The amount of optimization provided by using assembly stubs varies from platform to platform and application to application. However, by using the assembly stubs, many platforms can use an additional -space optimization (see <A HREF="#fixedsize">below</A>).</p> +space optimization (see <a href="#fixedsize">below</a>).</p> <p>The biggest hurdle to creating assembly stubs is handling the various ways that the dispatch table pointer can be accessed. There are four @@ -235,7 +235,7 @@ implementation of each function. This makes the assembly file considerably larger (e.g., 29,332 lines for <tt>glapi_x86-64.S</tt> versus 1,155 lines for <tt>glapi_x86.S</tt>) and causes simple changes to the function implementation to generate many lines of diffs. Since the assmebly files -are typically generated by scripts (see <A HREF="#autogen">below</A>), this +are typically generated by scripts (see <a href="#autogen">below</a>), this isn't a significant problem.</p> <p>Once a new assembly file is created, it must be inserted in the build @@ -245,8 +245,7 @@ step is to add the correct <tt>#ifdef</tt> magic to <tt>src/mesa/glapi/glapi_dispatch.c</tt> to prevent the C version of the dispatch functions from being built.</p> -<A NAME="fixedsize"/> -<H3>3.4. Fixed-Length Dispatch Stubs</H3> +<h3 id="fixedsize">3.4. Fixed-Length Dispatch Stubs</h3> <p>To implement <tt>glXGetProcAddress</tt>, Mesa stores a table that associates function names with pointers to those functions. This table is @@ -265,8 +264,7 @@ dispatch stub.</p> <tt>src/mesa/glapi/glapi.c</tt> just before <tt>glprocs.h</tt> is included.</p> -<A NAME="autogen"/> -<H2>4. Automatic Generation of Dispatch Stubs</H2> +<h2 id="autogen">4. Automatic Generation of Dispatch Stubs</h2> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/download.html b/mesalib/docs/download.html index 6a9533aae..3d543281f 100644 --- a/mesalib/docs/download.html +++ b/mesalib/docs/download.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Getting Mesa</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Getting Mesa</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Downloading</H1> +<h1>Downloading</h1> <p> Primary Mesa download site: @@ -20,7 +21,7 @@ When a new release is coming, release candidates (betas) may be found </p> -<H1>Unpacking</H1> +<h1>Unpacking</h1> <p> Mesa releases are available in three formats: .tar.bz2, .tar.gz, and .zip @@ -79,7 +80,7 @@ instructions</a>. </p> -<H1>Demos and GLUT</H2> +<h1>Demos and GLUT</h1> <p> A package of Mark Kilgard's GLUT library is available @@ -98,5 +99,5 @@ were split off some time ago. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/egl.html b/mesalib/docs/egl.html index 5b750070c..e374357c9 100644 --- a/mesalib/docs/egl.html +++ b/mesalib/docs/egl.html @@ -1,9 +1,10 @@ -<html> - -<title>Mesa EGL</title> - -<head><link rel="stylesheet" type="text/css" href="mesa.css"></head> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa EGL</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> <body> <h1>Mesa EGL</h1> diff --git a/mesalib/docs/envvars.html b/mesalib/docs/envvars.html index a64e2ee62..fffb50a47 100644 --- a/mesalib/docs/envvars.html +++ b/mesalib/docs/envvars.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Environment Variables</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Environment Variables</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Environment Variables</H1> +<h1>Environment Variables</h1> <p> Normally, no environment variables need to be set. Most of the environment @@ -15,7 +16,7 @@ sometimes be useful for debugging end-user issues. </p> -<H2>LibGL environment variables</H2> +<h2>LibGL environment variables</h2> <ul> <li>LIBGL_DEBUG - If defined debug information will be printed to stderr. @@ -28,7 +29,7 @@ sometimes be useful for debugging end-user issues. -<H2>Core Mesa environment variables</H2> +<h2>Core Mesa environment variables</h2> <ul> <li>MESA_NO_ASM - if set, disables all assembly language optimizations @@ -70,11 +71,11 @@ if it's higher than what's normally reported. (for developers only) </ul> -<H2>Mesa Xlib driver environment variables</H2> +<h2>Mesa Xlib driver environment variables</h2> <p> The following are only applicable to the Mesa Xlib software driver. -See the <A HREF="xlibdriver.html">Xlib software driver page</A> for details. +See the <a href="xlibdriver.html">Xlib software driver page</a> for details. </p> <ul> <li>MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode @@ -163,10 +164,5 @@ Other Gallium drivers have their own environment variables. These may change frequently so the source code should be consulted for details. </p> - -<br> -<br> - - -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/extensions.html b/mesalib/docs/extensions.html index 91ed20e5c..d96445c40 100644 --- a/mesalib/docs/extensions.html +++ b/mesalib/docs/extensions.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Extensions</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Extensions</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Mesa Extensions</H1> +<h1>Mesa Extensions</h1> <p> A number of extensions have been developed especially for Mesa. @@ -14,22 +15,21 @@ The specifications follow. </p> -<UL> -<LI><A HREF="MESA_agp_offset.spec">MESA_agp_offset.spec</A> -<LI><A HREF="MESA_copy_sub_buffer.spec">MESA_copy_sub_buffer.spec</A> -<LI><A HREF="MESA_packed_depth_stencil.spec">MESA_packed_depth_stencil.spec</A> -<LI><A HREF="MESA_pack_invert.spec">MESA_pack_invert.spec</A> -<LI><A HREF="MESA_pixmap_colormap.spec">MESA_pixmap_colormap.spec</A> -<LI><A HREF="MESA_release_buffers.spec">MESA_release_buffers.spec</A> -<LI><A HREF="MESA_resize_buffers.spec">MESA_resize_buffers.spec</A> -<LI><A HREF="MESA_set_3dfx_mode.spec">MESA_set_3dfx_mode.spec</A> -<LI><A HREF="MESA_sprite_point.spec">MESA_sprite_point.spec</A> (obsolete) -<LI><A HREF="MESA_texture_signed_rgba.spec">MESA_texture_signed_rgba.spec</A> -<LI><A HREF="MESA_trace.spec">MESA_trace.spec</A> (obsolete) -<LI><A HREF="MESA_window_pos.spec">MESA_window_pos.spec</A> -<LI><A HREF="MESA_ycbcr_texture.spec">MESA_ycbcr_texture.spec</A> -</UL> - - -</BODY> -</HTML> +<ul> +<li><a href="MESA_agp_offset.spec">MESA_agp_offset.spec</a> +<li><a href="MESA_copy_sub_buffer.spec">MESA_copy_sub_buffer.spec</a> +<li><a href="MESA_packed_depth_stencil.spec">MESA_packed_depth_stencil.spec</a> +<li><a href="MESA_pack_invert.spec">MESA_pack_invert.spec</a> +<li><a href="MESA_pixmap_colormap.spec">MESA_pixmap_colormap.spec</a> +<li><a href="MESA_release_buffers.spec">MESA_release_buffers.spec</a> +<li><a href="MESA_resize_buffers.spec">MESA_resize_buffers.spec</a> +<li><a href="MESA_set_3dfx_mode.spec">MESA_set_3dfx_mode.spec</a> +<li><a href="MESA_sprite_point.spec">MESA_sprite_point.spec</a> (obsolete) +<li><a href="MESA_texture_signed_rgba.spec">MESA_texture_signed_rgba.spec</a> +<li><a href="MESA_trace.spec">MESA_trace.spec</a> (obsolete) +<li><a href="MESA_window_pos.spec">MESA_window_pos.spec</a> +<li><a href="MESA_ycbcr_texture.spec">MESA_ycbcr_texture.spec</a> +</ul> + +</body> +</html> diff --git a/mesalib/docs/faq.html b/mesalib/docs/faq.html index bf6545fd5..dbef6a58c 100644 --- a/mesalib/docs/faq.html +++ b/mesalib/docs/faq.html @@ -1,11 +1,11 @@ -<html> - -<head><title>Mesa FAQ</title></head> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa FAQ</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> <center> <h1>Mesa Frequently Asked Questions</h1> @@ -28,14 +28,13 @@ Last updated: 21 August 2006 -<a name="part1"> -</a><h1><a name="part1">1. High-level Questions and Answers</a></h1> +<h1 id="part1">1. High-level Questions and Answers</h1> -<h2><a name="part1">1.1 What is Mesa?</a></h2> +<h2>1.1 What is Mesa?</h2> <p> -<a name="part1">Mesa is an open-source implementation of the OpenGL specification. +Mesa is an open-source implementation of the OpenGL specification. OpenGL is a programming library for writing interactive 3D applications. -See the </a><a href="http://www.opengl.org/">OpenGL website</a> for more +See the <a href="http://www.opengl.org/">OpenGL website</a> for more information. </p> <p> @@ -89,6 +88,7 @@ Still, Mesa serves at least these purposes: <em>Stand-alone Mesa</em> is the original incarnation of Mesa. On systems running the X Window System it does all its rendering through the Xlib API: +</p> <ul> <li>The GLX API is supported, but it's really just an emulation of the real thing. @@ -98,7 +98,6 @@ the Xlib API: <li>The OpenGL library, libGL.so, contains everything (the programming API, the GLX functions and all the rendering code). </ul> -</p> <p> Alternately, Mesa acts as the core for a number of OpenGL hardware drivers within the DRI (Direct Rendering Infrastructure): @@ -176,44 +175,43 @@ popular and feature-complete. <br> -<a name="part2"> -</a><h1><a name="part2">2. Compilation and Installation Problems</a></h1> +<h1 id="part2">2. Compilation and Installation Problems</h1> -<h2><a name="part2">2.1 What's the easiest way to install Mesa?</a></h2> +<h2>2.1 What's the easiest way to install Mesa?</h2> <p> -<a name="part2">If you're using a Linux-based system, your distro CD most likely already +If you're using a Linux-based system, your distro CD most likely already has Mesa packages (like RPM or DEB) which you can easily install. -</a></p> +</p> -<h2><a name="part2">2.2 I get undefined symbols such as bgnpolygon, v3f, etc...</a></h2> +<h2>2.2 I get undefined symbols such as bgnpolygon, v3f, etc...</h2> <p> -<a name="part2">You're application is written in IRIS GL, not OpenGL. +You're application is written in IRIS GL, not OpenGL. IRIS GL was the predecessor to OpenGL and is a different thing (almost) entirely. Mesa's not the solution. -</a></p> +</p> -<h2><a name="part2">2.3 Where is the GLUT library?</a></h2> +<h2>2.3 Where is the GLUT library?</h2> <p> -<a name="part2">GLUT (OpenGL Utility Toolkit) is no longer in the separate MesaGLUT-x.y.z.tar.gz file. +GLUT (OpenGL Utility Toolkit) is no longer in the separate MesaGLUT-x.y.z.tar.gz file. If you don't already have GLUT installed, you should grab <a href="http://freeglut.sourceforge.net/">freeglut</a>. -</a></p> +</p> -<h2><a name="part2">2.4 Where is the GLw library?</a></h2> +<h2>2.4 Where is the GLw library?</h2> <p> -<a name="part2">GLw (OpenGL widget library) is now available from a separate <a href="http://cgit.freedesktop.org/mesa/glw/">git repository</a>. Unless you're using very old Xt/Motif applications with OpenGL, you shouldn't need it. -</a></p> +GLw (OpenGL widget library) is now available from a separate <a href="http://cgit.freedesktop.org/mesa/glw/">git repository</a>. Unless you're using very old Xt/Motif applications with OpenGL, you shouldn't need it. +</p> -<h2><a name="part2">2.5 What's the proper place for the libraries and headers?</a></h2> +<h2>2.5 What's the proper place for the libraries and headers?</h2> <p> -<a name="part2">On Linux-based systems you'll want to follow the -</a><a href="http://oss.sgi.com/projects/ogl-sample/ABI/index.html" +On Linux-based systems you'll want to follow the +<a href="http://oss.sgi.com/projects/ogl-sample/ABI/index.html" target="_parent">Linux ABI</a> standard. Basically you'll want the following: </p> @@ -248,29 +246,28 @@ The GLUT header and library should go in the same directories. <br> -<a name="part3"> -</a><h1><a name="part3">3. Runtime / Rendering Problems</a></h1> +<h1 id="part3">3. Runtime / Rendering Problems</h1> -<h2><a name="part3">3.1 Rendering is slow / why isn't my graphics hardware being used?</a></h2> +<h2>3.1 Rendering is slow / why isn't my graphics hardware being used?</h2> <p> -<a name="part3">Stand-alone Mesa (downloaded as MesaLib-x.y.z.tar.gz) doesn't have any +Stand-alone Mesa (downloaded as MesaLib-x.y.z.tar.gz) doesn't have any support for hardware acceleration (with the exception of the 3DFX Voodoo driver). -</a></p> +</p> <p> -<a name="part3">What you really want is a DRI or NVIDIA (or another vendor's OpenGL) driver +What you really want is a DRI or NVIDIA (or another vendor's OpenGL) driver for your particular hardware. -</a></p> +</p> <p> -<a name="part3">You can run the <code>glxinfo</code> program to learn about your OpenGL +You can run the <code>glxinfo</code> program to learn about your OpenGL library. Look for the GL_VENDOR and GL_RENDERER values. That will identify who's OpenGL library you're using and what sort of hardware it has detected. -</a></p> +</p> <p> -<a name="part3">If your DRI-based driver isn't working, go to the -</a><a href="http://dri.sf.net/" target="_parent">DRI website</a> for trouble-shooting information. +If your DRI-based driver isn't working, go to the +<a href="http://dri.sf.net/" target="_parent">DRI website</a> for trouble-shooting information. </p> @@ -338,10 +335,9 @@ may introduce rasterization artifacts; see the leading comments in <br> -<a name="part4"> -</a><h1><a name="part4">4. Developer Questions</a></h1> +<h1 id="part4">4. Developer Questions</h1> -<h2>4.1 How can I contribute?</a></h2> +<h2>4.1 How can I contribute?</h2> <p> First, join the <a href="http://www.mesa3d.org/lists.html">Mesa3d-dev mailing list</a>. @@ -397,6 +393,5 @@ In the mean time, a 3rd party <a href= target="_parent">plug-in library</a> is available. </p> - </body> </html> diff --git a/mesalib/docs/games.html b/mesalib/docs/games.html index 82e3d09a4..eaa7f4073 100644 --- a/mesalib/docs/games.html +++ b/mesalib/docs/games.html @@ -1,13 +1,13 @@ -<HTML> - -<TITLE>Games</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Games</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Games</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> +<h1>Games</h1> <ul> <li><a href="http://www.psc.edu/%7Esmp/a3d/">Asteroids3D</a> - 3D asteroids game @@ -57,7 +57,8 @@ - freeware arcade style game </li><li><a href="http://xracer.annexia.org/" target="_parent">XRacer</a> - Free spaceship racing game, similar to Wipeout -</li></ul> - + </li> +</ul> -</body></html> +</body> +</html> diff --git a/mesalib/docs/glu.html b/mesalib/docs/glu.html index 8adaf42bc..3d7cbe50a 100644 --- a/mesalib/docs/glu.html +++ b/mesalib/docs/glu.html @@ -1,12 +1,13 @@ -<HTML> - -<TITLE>SGI GLU</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>SGI SI GLU</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>SGI GLU</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<h1>SGI SI GLU</h1> (Silicon Graphics, Inc. Sample Implementation of the OpenGL Utility library) diff --git a/mesalib/docs/helpwanted.html b/mesalib/docs/helpwanted.html index 34afe49f7..444c12b5a 100644 --- a/mesalib/docs/helpwanted.html +++ b/mesalib/docs/helpwanted.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Help Wanted</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Help Wanted</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Help Wanted / To-Do List</H1> +<h1>Help Wanted / To-Do List</h1> <p> We can always use more help with the Mesa project. @@ -54,14 +55,14 @@ Then post a message to propose what you want to do, just to make sure there's no issues. </p> -</p> +<p> Anyone is welcome to contribute code to the Mesa project. By doing so, it's assumed that you agree to the code's licensing terms. </p> <p> Finally: -<p> +</p> <ol> <li>Try to write high-quality code that follows the existing style. @@ -70,5 +71,5 @@ Finally: </ol> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/index.html b/mesalib/docs/index.html index eec4d725c..dc74b661f 100644 --- a/mesalib/docs/index.html +++ b/mesalib/docs/index.html @@ -1,8 +1,8 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> -<html> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> +<html lang="en"> <head> -<title>Mesa Home Page</title> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Home Page</title> </head> <frameset rows="80,*" border="0" frameborder="yes"> diff --git a/mesalib/docs/install.html b/mesalib/docs/install.html index a344c2ca7..948d147f1 100644 --- a/mesalib/docs/install.html +++ b/mesalib/docs/install.html @@ -1,13 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Compiling and Installing</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Compiling and Installing</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - - -<H1>Compiling and Installing</H1> +<h1>Compiling and Installing</h1> <ol> <li><a href="#prereq-general">Prerequisites for building</a> @@ -19,12 +19,11 @@ <li><a href="#scons">Building with SCons (Windows/Linux)</a> <li><a href="#other">Building for other systems</a> <li><a href="#libs">Library Information</a> -<li><a href="#pkg-config">Building OpenGL programs with pkg-config +<li><a href="#pkg-config">Building OpenGL programs with pkg-config</a> </ol> -<a name="prereq-general"> -<h1>1. Prerequisites for building</h1> +<h1 id="prereq-general">1. Prerequisites for building</h1> <h2>1.1 General</h2> <ul> @@ -46,8 +45,7 @@ To build OpenGL ES 1.1 and 2.0 you'll also need </ul> -<a name="prereq-dri"> -<h3>1.2 For DRI and hardware acceleration</h3> +<h3 id="prereq-dri">1.2 For DRI and hardware acceleration</h3> <p> The following are required for DRI-based hardware acceleration with Mesa: @@ -61,10 +59,10 @@ version 2.4.33 or later <li>Xorg server version 1.5 or later <li>Linux 2.6.28 or later </ul> -</p> <p> If you're using a fedora distro the following command should install all the needed dependencies: +</p> <pre> sudo yum install flex bison imake libtool xorg-x11-proto-devel libdrm-devel \ gcc-c++ xorg-x11-server-devel libXi-devel libXmu-devel libXdamage-devel git \ @@ -73,8 +71,7 @@ the needed dependencies: -<a name="autoconf"> -<H1>2. Building with autoconf (Linux/Unix/X11)</H1> +<h1 id="autoconf">2. Building with autoconf (Linux/Unix/X11)</h1> <p> The primary method to build Mesa on Unix systems is with autoconf. @@ -82,19 +79,20 @@ The primary method to build Mesa on Unix systems is with autoconf. <p> The general approach is the standard: +</p> <pre> ./configure make sudo make install </pre> +<p> But please read the <a href="autoconf.html">detailed autoconf instructions</a> for more details. </p> -<a name="scons"> -<H1>3. Building with SCons (Windows/Linux)</H1> +<h1 id="scons">3. Building with SCons (Windows/Linux)</h1> <p> To build Mesa with SCons on Linux or Windows do @@ -119,8 +117,8 @@ To build Mesa with SCons for Windows on Linux using the MinGW crosscompiler tool This will create: </p> <ul> -<li>build/windows-x86-debug/mesa/drivers/windows/gdi/opengl32.dll — Mesa + swrast, binary compatible with Windows's opengl32.dll -<li>build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll — Mesa + Gallium + softpipe, binary compatible with Windows's opengl32.dll +<li>build/windows-x86-debug/mesa/drivers/windows/gdi/opengl32.dll — Mesa + swrast, binary compatible with Windows's opengl32.dll +<li>build/windows-x86-debug/gallium/targets/libgl-gdi/opengl32.dll — Mesa + Gallium + softpipe, binary compatible with Windows's opengl32.dll </ul> <p> Put them all in the same directory to test them. @@ -128,23 +126,21 @@ Put them all in the same directory to test them. -<a name="other"> -<H1>4. Building for other systems</H1> +<h1 id="other">4. Building for other systems</h1> <p> Documentation for other environments (some may be very out of date): </p> -<UL> -<li><A HREF="README.VMS">README.VMS</A> - VMS -<LI><A HREF="README.CYGWIN">README.CYGWIN</A> - Cygwin -<LI><A HREF="README.WIN32">README.WIN32</A> - Win32 -</UL> +<ul> +<li><a href="README.VMS">README.VMS</a> - VMS +<li><a href="README.CYGWIN">README.CYGWIN</a> - Cygwin +<li><a href="README.WIN32">README.WIN32</a> - Win32 +</ul> -<a name="libs"> -<H1>5. Library Information</H1> +<h1 id="libs">5. Library Information</h1> <p> When compilation has finished, look in the top-level <code>lib/</code> @@ -188,8 +184,7 @@ versions of libGL and device drivers. </p> -<a name="pkg-config"> -<H1>6. Building OpenGL programs with pkg-config</H1> +<h1 id="pkg-config">6. Building OpenGL programs with pkg-config</h1> <p> Running <code>make install</code> will install package configuration files diff --git a/mesalib/docs/intro.html b/mesalib/docs/intro.html index 303f5eb0f..ef04f357e 100644 --- a/mesalib/docs/intro.html +++ b/mesalib/docs/intro.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Introduction</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Introduction</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Introduction</H1> +<h1>Introduction</h1> <p> Mesa is an open-source implementation of the @@ -30,7 +31,7 @@ systems. -<H1>Project History</H1> +<h1>Project History</h1> <p> The Mesa project was originally started by Brian Paul. @@ -156,7 +157,7 @@ of the OpenGL specification. -<H1>Major Versions</H1> +<h1>Major Versions</h1> <p> This is a summary of the major versions of Mesa. @@ -165,7 +166,7 @@ of the OpenGL specification is implemented. </p> -<H2>Version 8.x features</H2> +<h2>Version 8.x features</h2> <p> Version 8.x of Mesa implements the OpenGL 3.0 API. The developers at Intel deserve a lot of credit for implementing most @@ -174,14 +175,14 @@ the i965 driver. </p> -<H2>Version 7.x features</H2> +<h2>Version 7.x features</h2> <p> Version 7.x of Mesa implements the OpenGL 2.1 API. The main feature of OpenGL 2.x is the OpenGL Shading Language. </p> -<H2>Version 6.x features</H2> +<h2>Version 6.x features</h2> <p> Version 6.x of Mesa implements the OpenGL 1.5 API with the following extensions incorporated as standard features: @@ -221,7 +222,7 @@ OpenGL specification</a> for more details. -<H2>Version 5.x features</H2> +<h2>Version 5.x features</h2> <p> Version 5.x of Mesa implements the OpenGL 1.4 API with the following extensions incorporated as standard features: @@ -247,7 +248,7 @@ extensions incorporated as standard features: </ul> -<H2>Version 4.x features</H2> +<h2>Version 4.x features</h2> <p> Version 4.x of Mesa implements the OpenGL 1.3 API with the following @@ -266,7 +267,7 @@ extensions incorporated as standard features: <li>GL_ARB_transpose_matrix </ul> -<H2>Version 3.x features</H2> +<h2>Version 3.x features</h2> <p> Version 3.x of Mesa implements the OpenGL 1.2 API with the following @@ -282,7 +283,7 @@ features: </ul> -<H2>Version 2.x features</H2> +<h2>Version 2.x features</h2> <p> Version 2.x of Mesa implements the OpenGL 1.1 API with the following features. diff --git a/mesalib/docs/libraries.html b/mesalib/docs/libraries.html index 1c425cf1b..e9db42790 100644 --- a/mesalib/docs/libraries.html +++ b/mesalib/docs/libraries.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Libraries and Toolkits</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Libraries and Toolkits</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Libraries and Toolkits</H1> +<h1>Libraries and Toolkits</h1> <ul> <li><a href="http://mrpowers.com/Apprentice/">Apprentice</a> - free OpenInventor work-alike @@ -53,4 +54,5 @@ Open SG PLUS</a> - a scene-graph library </ul> -</body></html> +</body> +</html> diff --git a/mesalib/docs/license.html b/mesalib/docs/license.html index 913dd4109..f0ac28ccf 100644 --- a/mesalib/docs/license.html +++ b/mesalib/docs/license.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>License / Cppyright Information</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>License / Cppyright Information</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Disclaimer</H1> +<h1>Disclaimer</h1> <p> Mesa is a 3-D graphics library with an API which is very similar to @@ -34,7 +35,7 @@ target="_parent">Silicon Graphics Incorporated</a>. -<H1>License / Copyright Information</H1> +<h1>License / Copyright Information</h1> <p> The Mesa distribution consists of several components. Different copyrights @@ -73,7 +74,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </pre> -<H1>Attention, Contributors</H1> +<h1>Attention, Contributors</h1> <p> When contributing to the Mesa project you must agree to the licensing terms @@ -83,7 +84,7 @@ and their respective licenses. </p> -<H1>Mesa Component Licenses</H1> +<h1>Mesa Component Licenses</h1> <pre> Component Location License diff --git a/mesalib/docs/lists.html b/mesalib/docs/lists.html index 033b0b70a..d89bcffbd 100644 --- a/mesalib/docs/lists.html +++ b/mesalib/docs/lists.html @@ -1,38 +1,36 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Mailing Lists</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Mailing Lists</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Mailing Lists</H1> +<h1>Mailing Lists</h1> <p>There are four Mesa 3D / DRI mailing lists: </p> <ul> -<li><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" +<li><p><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_parent">mesa-users</a> - intended for end-users of Mesa and DRI drivers. Newbie questions are OK, but please try the general OpenGL -resources and Mesa/DRI documentation first. +resources and Mesa/DRI documentation first.</p> </li> -<br> -<li><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" +<li><p><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_parent">mesa-dev</a> - for Mesa, Gallium and DRI development -discussion. Not for beginners. +discussion. Not for beginners.</p> </li> -<br> -<li><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-commit" +<li><p><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-commit" target="_parent">mesa-commit</a> - relays git check-in messages (for developers). -In general, people should not post to this list. +In general, people should not post to this list.</p> </li> -<br> -<li><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-announce" +<li><p><a href="http://lists.freedesktop.org/mailman/listinfo/mesa-announce" target="_parent">mesa-announce</a> - announcements of new Mesa -versions are sent to this list. Very low traffic. +versions are sent to this list. Very low traffic.</p> </li> </ul> @@ -65,7 +63,7 @@ DRI wiki</a>. <br> -<H1>OpenGL Forums</H1> +<h1>OpenGL Forums</h1> <p> Here are some other OpenGL-related forums you might find useful: @@ -82,5 +80,5 @@ target="_parent">OpenGL discussion forums</A> at www.opengl.org</li> </ul> </ul> -</HTML> -</BODY> +</body> +</html> diff --git a/mesalib/docs/llvmpipe.html b/mesalib/docs/llvmpipe.html index bd9cc26f2..cf4512ffc 100644 --- a/mesalib/docs/llvmpipe.html +++ b/mesalib/docs/llvmpipe.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>llvmpipe</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>llvmpipe</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Introduction</H1> +<h1>Introduction</h1> <p> The Gallium llvmpipe driver is a software rasterizer that uses LLVM to @@ -24,19 +25,19 @@ It's the fastest software rasterizer for Mesa. <ul> <li> - <p>An x86 or amd64 processor; 64-bit mode recommended.</p + <p>An x86 or amd64 processor; 64-bit mode recommended.</p> <p> Support for SSE2 is strongly encouraged. Support for SSSE3 and SSE4.1 will yield the most efficient code. The fewer features the CPU has the more - likely is that you run into underperforming, buggy, or incomplete code. + likely is that you run into underperforming, buggy, or incomplete code. </p> <p> See /proc/cpuinfo to know what your CPU supports. </p> </li> <li> - <p>LLVM: version 2.9 recommended; 2.6 or later required.</p> - <b>NOTE</b>: LLVM 2.8 and earlier will not work on systems that support the + <p>LLVM: version 2.9 recommended; 2.6 or later required.</p> + <p><b>NOTE</b>: LLVM 2.8 and earlier will not work on systems that support the Intel AVX extensions (e.g. Sandybridge). LLVM's code generator will fail when trying to emit AVX instructions. This was fixed in LLVM 2.9. </p> @@ -46,6 +47,7 @@ It's the fastest software rasterizer for Mesa. <pre> aptitude install llvm-dev </pre> + <p> For a RPM-based distribution do: </p> <pre> @@ -73,8 +75,6 @@ It's the fastest software rasterizer for Mesa. </ul> - - <h1>Building</h1> To build everything on Linux invoke scons as: @@ -126,7 +126,7 @@ need to ask, don't even try it. To profile llvmpipe you should pass the options <pre> - scons build=profile <same-as-before> + scons build=profile <same-as-before> </pre> This will ensure that frame pointers are used both in C and JIT functions, and @@ -164,7 +164,7 @@ Building will also create several unit tests in build/linux-???-debug/gallium/drivers/llvmpipe: </p> -</ul> +<ul> <li> lp_test_blend: blending <li> lp_test_conv: SIMD vector conversion <li> lp_test_format: pixel unpacking/packing @@ -185,7 +185,7 @@ for posterior analysis, e.g.: <li> When looking to this code by the first time start in lp_state_fs.c, and then skim through the lp_bld_* functions called in there, and the comments - at the top of the lp_bld_*.c functions. + at the top of the lp_bld_*.c functions. </li> <li> The driver-independent parts of the LLVM / Gallium code are found in @@ -200,3 +200,6 @@ for posterior analysis, e.g.: for a stand-alone example. See the llvm-c/Core.h file for reference. </li> </ul> + +</body> +</html> diff --git a/mesalib/docs/mangling.html b/mesalib/docs/mangling.html index 55071544f..2ff628c34 100644 --- a/mesalib/docs/mangling.html +++ b/mesalib/docs/mangling.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Function Name Mangling</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Function Name Mangling</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Function Name Mangling</H1> +<h1>Function Name Mangling</h1> <p> If you want to use both Mesa and another OpenGL library in the same @@ -20,11 +21,11 @@ This results in all the Mesa functions being prefixed with To do this, recompile Mesa with the compiler flag -DUSE_MGL_NAMESPACE. Add the flag to CFLAGS in the configuration file which you want to use. For example: +</p> <pre> CFLAGS += -DUSE_MGL_NAMESPACE </pre> -</p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/modelers.html b/mesalib/docs/modelers.html index 2e90a5268..13a4603fa 100644 --- a/mesalib/docs/modelers.html +++ b/mesalib/docs/modelers.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Modelers, Renderers and Viewers</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Modelers, Renderers and Viewers</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Modelers, Renderers and Viewers</H1> +<h1>Modelers, Renderers and Viewers</h1> <ul> <li><a href="http://www.aqsis.org/" target="_parent">Aqsis</a> - a RenderMan compatible renderer</li> @@ -60,4 +61,5 @@ </li></ul> -</body></html> +</body> +</html> diff --git a/mesalib/docs/news.html b/mesalib/docs/news.html index 140f35b47..b6b82671c 100644 --- a/mesalib/docs/news.html +++ b/mesalib/docs/news.html @@ -1,15 +1,13 @@ -<HTML> - -<TITLE>Mesa News</TITLE> - -<head><link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<body bgcolor="#eeeeee"> - -<H1>News</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa News</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> +<h1>News</h1> <h2>May 18, 2012</h2> @@ -311,7 +309,7 @@ shading language and built-in functions. <h2>April 2007</h2> <p> Thomas Hellström of Tungsten Graphics has written a whitepaper -describing the new DRI memory management system</a>. +describing the new DRI memory management system. </p> <h2>December 5, 2006</h2> @@ -541,7 +539,7 @@ release). - sampling an incomplete texture in a fragment program would segfault - glTexImage was missing a few error checks - fixed some minor glGetTexParameter glitches - - GL_INTENSITY was mistakenly accepted as a <format> to glTexImage + - GL_INTENSITY was mistakenly accepted as a <format> to glTexImage - fragment program writes to RC/HC register were broken - fixed a few glitches in GL_HP_occlusion_test extension - glBeginQueryARB and glEndQueryARB didn't work inside display lists @@ -549,6 +547,7 @@ release). - fixed triangle color interpolation bug on AIX (Shane Blackett) - fixed a number of minor memory leaks (bug #1002030) </pre> +<p> The MD5 checksums are: </p> <pre> @@ -578,7 +577,7 @@ This release basically just fixes bugs since the 6.0. release. - fixed build problems on OpenBSD - omit CVS directories from tarballs - glGetTexImage(GL_COLOR_INDEX) was broken - - fixed an infinite loop in t&l module + - fixed an infinite loop in t&l module - silenced some valgrind warnings about using unitialized memory - fixed some compilation/link glitches on IRIX (Mike Stephens) - glBindProgram wasn't getting compiled into display lists @@ -600,6 +599,7 @@ This release basically just fixes bugs since the 6.0. release. - fragment program XPD instruction was incorrect - glGetMaterial() didn't work reliably </pre> +<p> The MD5 checksums are: </p> <pre> @@ -612,7 +612,6 @@ eff71d59c211825e949199852f5a2316 MesaDemos-6.0.1.zip </pre> - <h2>January 16, 2004</h2> <p> @@ -639,7 +638,6 @@ and primarily just incorporates bug fixes. </pre> - <h2>December 28, 2003</h2> <p> @@ -663,7 +661,7 @@ OpenGL 1.5 features. <pre> New features: - reorganized directory tree - - GL_ARB_vertex/fragment_program extensions (Michal Krol & Karl Rasche) + - GL_ARB_vertex/fragment_program extensions (Michal Krol & Karl Rasche) - GL_ATI_texture_env_combine3 extension (Ian Romanick) - GL_SGI_texture_color_table extension (Eric Plante) - GL_NV_fragment_program extension @@ -699,7 +697,7 @@ OpenGL 1.5 features. - glTexImage1/2/3D now allows width/height/depth = 0 - disable SPARC asm code on Linux (bug 852204) </pre> - +<p> The MD5 checksums are: </p> <pre> @@ -731,7 +729,6 @@ a21be975589e8a2d1871b6bb7874fffa MesaDemos-5.0.2.zip </pre> - <h2>September 5, 2003</h2> <p> @@ -766,7 +763,6 @@ Mesa 5.0.2 has been released. This is a stable, bug-fix release. </pre> - <h2>June 2003</h2> <p> @@ -780,7 +776,6 @@ holds the Mesa 5.0.x code which will be abandoned at some point. </p> - <h2>March 30, 2003</h2> <p> @@ -1175,8 +1170,8 @@ Here's what's new:</p> Known problems: - NURBS or evaluator surfaces inside display lists don't always work </pre> -<p> -</p><h2>November 3, 2000</h2> + +<h2>November 3, 2000</h2> <p>Mesa 3.4 has been released. Here's what's new since the 3.3 release:</p> <pre> New: - optimized glDrawPixels for glPixelZoom(1,-1) @@ -1204,8 +1199,8 @@ Here's what's new:</p> Changes: - finished internal support for compressed textures for DRI </pre> -<p> -</p><h2>April 24, 2000</h2> + +<h2>April 24, 2000</h2> <p>Mesa 3.2 has been released. Here's what's new since the beta release:</p> <pre> Bug fixes: - fixed memcpy bugs in span.c @@ -1220,78 +1215,69 @@ Here's what's new:</p> - use bcopy() optimizations on FreeBSD - re-enabled the optimized persp_textured_triangle() function </pre> -<p> -</p><h2>March 23, 2000</h2> + +<h2>March 23, 2000</h2> <p>I've just upload the Mesa 3.2 beta 1 files to SourceForge at <a href="http://sourceforge.net/project/showfiles.php?group_id=3" target="_parent">http://sourceforge.net/project/filelist.php?group_id=3</a><a href="http://sourceforge.net/project/showfiles.php?group_id=3"></a></p> <p>3.2 (note even number) is a stabilization release of Mesa 3.1 meaning it's mainly just bug fixes.</p> -<p>Here's what's changed: - -</p><ul> - Bug fixes: - <ul> - - mixed drawing of lines and bitmaps sometimes had wrong colors<br> - - added missing glHintPGI() function<br> - - fixed a polygon culling bug<br> - - fixed bugs in gluPartialDisk()<br> - - Z values in selection mode were wrong<br> - - added missing tokens: - <ul> - GL_SMOOTH_POINT_SIZE_RANGE<br> - GL_SMOOTH_POINT_SIZE_GRANULARITY<br> - GL_SMOOTH_LINE_WIDTH_RANGE<br> - GL_SMOOTH_LINE_WIDTH_GRANULARITY<br> - GL_ALIASED_POINT_SIZE_RANGE<br> - GL_ALIASED_LINE_WIDTH_RANGE - </ul> - - fixed glCopyPixels when copying from back to front buffer<br> - - GL_EXT_compiled_vertex_array tokens had _SGI suffix instead of _EXT<br> - - glDrawRangeElements(GL_LINES, 0, 1, 2, type, indices) was broken<br> - - glDeleteTextures() didn't decrement reference count correctly<br> - - GL_SRCA_ALPHA_SATURATE blend mode didn't work correctly<br> - - Actual depth of transformation matrix stacks was off by one<br> - - 24bpp visuals didn't address pixels correctly<br> - - mipmap level of detail (lambda) calculation simplified, more accurate<br> - - 101691 - Polygon clipping and GL_LINE<br> - - 101928 - Polygon clipping and GL_LINE (same fix as above)<br> - - 101808 - Non-glVertexArrays tristrip bug<br> - - 101971 - find_last_3f on Dec OSF (worked around)<br> - - 102369 - segv on dec osf (possibly a duplicate of the above)<br> - - 102893 - orientations of modelview cause segfault - </ul> - New: - <ul> - - updated SVGA Linux driver<br> - - added the MESA_FX_NO_SIGNALS env var, see docs/README.3DFX<br> - - build libGLw.a (Xt/OpenGL drawing area widget) library by default<br> - - changed -O2 to -O3 for a number of gcc configs - </ul> - Changes: - <ul> - - glXCopyContext's mask parameter is now unsigned long, per GLX spec - </ul> -</ul> +<p>Here's what's changed:</p> +<pre> + Bug fixes: + - mixed drawing of lines and bitmaps sometimes had wrong colors + - added missing glHintPGI() function + - fixed a polygon culling bug + - fixed bugs in gluPartialDisk() + - Z values in selection mode were wrong + - added missing tokens: + GL_SMOOTH_POINT_SIZE_RANGE + GL_SMOOTH_POINT_SIZE_GRANULARITY + GL_SMOOTH_LINE_WIDTH_RANGE + GL_SMOOTH_LINE_WIDTH_GRANULARITY + GL_ALIASED_POINT_SIZE_RANGE + GL_ALIASED_LINE_WIDTH_RANGE + - fixed glCopyPixels when copying from back to front buffer + - GL_EXT_compiled_vertex_array tokens had _SGI suffix instead of _EXT + - glDrawRangeElements(GL_LINES, 0, 1, 2, type, indices) was broken + - glDeleteTextures() didn't decrement reference count correctly + - GL_SRCA_ALPHA_SATURATE blend mode didn't work correctly + - Actual depth of transformation matrix stacks was off by one + - 24bpp visuals didn't address pixels correctly + - mipmap level of detail (lambda) calculation simplified, more accurate + - 101691 - Polygon clipping and GL_LINE + - 101928 - Polygon clipping and GL_LINE (same fix as above) + - 101808 - Non-glVertexArrays tristrip bug + - 101971 - find_last_3f on Dec OSF (worked around) + - 102369 - segv on dec osf (possibly a duplicate of the above) + - 102893 - orientations of modelview cause segfault + New: + - updated SVGA Linux driver + - added the MESA_FX_NO_SIGNALS env var, see docs/README.3DFX + - build libGLw.a (Xt/OpenGL drawing area widget) library by default + - changed -O2 to -O3 for a number of gcc configs + Changes: + - glXCopyContext's mask parameter is now unsigned long, per GLX spec +</pre> <p>Please report any problems with this release ASAP. Bugs should be filed on the Mesa3D website at sourceforge.<br> After 3.2 is wrapped up I hope to release 3.3 beta 1 soon afterward.</p> <p>-- Brian</p> -<p> -</p><h2>December 17, 1999</h2> + +<h2>December 17, 1999</h2> <p>A Slashdot interview with Brian about Mesa (questions submitted by Slashdot readers) can be found at <a href="http://slashdot.org/interviews/99/12/17/0927212.shtml" target="_parent">http://slashdot.org/interviews/99/12/17/0927212.shtml</a>.</p> -<p> -</p><h2>December 14, 1999</h2> + +<h2>December 14, 1999</h2> <p>Mesa 3.1 is released!</p> -<p> -</p><h2>September 21, 1999</h2> + +<h2>September 21, 1999</h2> <p>There appear to be two new files on the ftp site, <a href="ftp://ftp.mesa3d.org/mesa/beta/MesaLib-3.1beta3.tar.gz">MesaLib-3.1beta3.tar.gz</a> and <a href="ftp://ftp.mesa3d.org/mesa/beta/MesaDemos-3.1beta3.tar.gz">MesaDemos-3.1beta3.tar.gz</a>, that seem to be... yes, I've just received confirmation from the beta center, they are indeed the <b>THIRD</b> beta release of Mesa 3.1! Happy Days. Happy Days. Thanks Keith Whitwell for preparing these for us during Brian's absence.</p> -<p> -</p><h2>August 30, 1999</h2> + +<h2>August 30, 1999</h2> <p>I'm pleased to announce that I've accepted a position with Precision Insight, Inc. effective October, 1999. I'll be leaving Avid Technology in September.</p> <p>I've been working on Mesa in my spare time for over five years. With Precision @@ -1301,41 +1287,41 @@ and OpenGL on Linux.</p> my work will continue to be open sourced and available to any other programmers who may want to contribute to it, or use it for other projects or platforms</p> <p>PS: I'm going to be traveling until Sep 6 and won't be reading email until then.</p> -<p> -</p><h2>August 23, 1999</h2> + +<h2>August 23, 1999</h2> <p>Anonymous CVS access is back online so suck up all the bandwidth you can afford. Note that this is a new archive, so you will need to re-checkout the archive. That means don't <i>cvs update</i> from a previous download.</p> -<p> -</p><h2>August 17, 1999</h2> + +<h2>August 17, 1999</h2> <p>A report from the SIGGRAPH '99 Linux/OpenGL BOF meeting is now available.</p> <p>-Brian</p> -<p> -</p><h2>August 14, 1999</h2> + +<h2>August 14, 1999</h2> <p>www.mesa3d.org is having technical problems due to hardware failures at VA Linux systems. The Mac pages, ftp, and CVS services aren't fully restored yet. Please be patient.</p> <p>-Brian</p> -<p> -</p><h2>June 7, 1999</h2> + +<h2>June 7, 1999</h2> <p>RPMS of the nVidia RIVA server can be found at <a href="ftp://ftp.mesa3d.org/mesa/misc/nVidia/">ftp://ftp.mesa3d.org/mesa/misc/nVidia/</a>.</p> -<p> -</p><h2>June 2, 1999</h2> + +<h2>June 2, 1999</h2> <p><a href="http://www.nvidia.com/">nVidia</a> has released some Linux binaries for xfree86 3.3.3.1, along with the <b>full source</b>, which includes GLX acceleration based on Mesa 3.0. They can be downloaded from <a href="http://www.nvidia.com/Products.nsf/htmlmedia/software_drivers.html">http://www.nvidia.com/Products.nsf/htmlmedia/software_drivers.html</a>.</p> -<p> -</p><h2>May 24, 1999</h2> + +<h2>May 24, 1999</h2> <p>Beta 2 of Mesa 3.1 has been make available at <a href="ftp://ftp.mesa3d.org/mesa/beta/">ftp://ftp.mesa3d.org/mesa/beta/</a>. If you are into the quake scene, you may want to try this out, as it contains some optimizations specifically in the Q3A rendering path. -<p> -</p><h2>May 13, 1999</h2> + +<h2>May 13, 1999</h2> <p>For those interested in the integration of Mesa into XFree86 4.0, Precision Insight has posted their lowlevel design documents at http://www.precisioninsight.com.</p> -<p> -</p><h2>May 13, 1999</h2> + +<h2>May 13, 1999</h2> <pre>May 1999 - John Carmack of id Software, Inc. has made a donation of US$10,000 to the Mesa project to support its continuing development. Mesa is a free implementation of the OpenGL 3D graphics library and id's @@ -1356,33 +1342,27 @@ This donation from John/id is very generous. Keith and I are very grateful. </pre> -<p> -</p><h2>May 1, 1999</h2> -<p>John Carmack made an interesting .plan update yesterday: -</p><ul> - <i>"I put together a document on optimizing OpenGL drivers for Q3 that - should be helpful to the various Linux 3D teams. <br> - </i>http://www.quake3arena.com/news/glopt.html</i>" -</ul> +<h2>May 1, 1999</h2> +<p>John Carmack made an interesting .plan update yesterday:</p> +<blockquote> + <i>"I put together a document on optimizing OpenGL drivers for Q3 that + should be helpful to the various Linux 3D teams.</i><br> + http://www.quake3arena.com/news/glopt.html" +</blockquote> -<p> -</p><h2>April 7, 1999</h2> +<h2>April 7, 1999</h2> <p>Updated the Mesa contributors section and added links to RPM Mesa packages.</p> -<p> -</p><h2>March 18, 1999</h2> + +<h2>March 18, 1999</h2> <p>The new webpages are now online. Enjoy, and let me know if you find any errors. -<p> -</p><h2>February 16, 1999</h2> + +<h2>February 16, 1999</h2> <p><a href="http://www.sgi.com/">SGI</a> releases its <a href="http://www.sgi.com/software/opensource/glx/">GLX source code</a>.</p> -<p> -</p><h2>January 22, 1999</h2> -<p>www.mesa3d.org established</p> - - -</p> +<h2>January 22, 1999</h2> +<p>www.mesa3d.org established</p> <hr> </body> diff --git a/mesalib/docs/opengles.html b/mesalib/docs/opengles.html index 0fee488e1..d02482589 100644 --- a/mesalib/docs/opengles.html +++ b/mesalib/docs/opengles.html @@ -1,9 +1,10 @@ -<html> - -<title>OpenGL ES</title> - -<head><link rel="stylesheet" type="text/css" href="mesa.css"></head> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>OpenGL ES</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> <body> <h1>OpenGL ES</h1> diff --git a/mesalib/docs/openvg.html b/mesalib/docs/openvg.html index 81e50b65f..9c3cc87d9 100644 --- a/mesalib/docs/openvg.html +++ b/mesalib/docs/openvg.html @@ -1,14 +1,13 @@ -<HTML> - -<TITLE>OpenVG State Tracker</TITLE> - -<head><link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<body bgcolor="#eeeeee"> - -<H1>OpenVG State Tracker</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>OpenVG State Tracker</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<h1>OpenVG State Tracker</h1> <p> The current version of the OpenVG state tracker implements OpenVG 1.1. diff --git a/mesalib/docs/osmesa.html b/mesalib/docs/osmesa.html index 525da4d42..2207641ed 100644 --- a/mesalib/docs/osmesa.html +++ b/mesalib/docs/osmesa.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Off-screen Rendering</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Off-screen Rendering</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Off-screen Rendering</H1> +<h1>Off-screen Rendering</h1> <p> @@ -19,7 +20,7 @@ One potential application is to use Mesa as an off-line, batch-style renderer. </p> <p> -The <B>OSMesa</B> API provides three basic functions for making off-screen +The <b>OSMesa</b> API provides three basic functions for making off-screen renderings: OSMesaCreateContext(), OSMesaMakeCurrent(), and OSMesaDestroyContext(). See the Mesa/include/GL/osmesa.h header for more information about the API functions. @@ -31,7 +32,7 @@ directory. </p> -<H2>Deep color channels</H2> +<h2>Deep color channels</h2> <p> For some applications 8-bit color channels don't have sufficient @@ -84,5 +85,5 @@ the top-level Makefile. Send a patch to the Mesa developers too, if you're inclined. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/perf.html b/mesalib/docs/perf.html index ee9c4b117..ec400c613 100644 --- a/mesalib/docs/perf.html +++ b/mesalib/docs/perf.html @@ -1,16 +1,17 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Performance Tips</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Performance Tips</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Performance Tips</H1> +<h1>Performance Tips</h1> <p> Performance tips for software rendering: -</P> +</p> <ol> <li> Turn off smooth shading when you don't need it (glShadeModel) @@ -64,5 +65,5 @@ Performance tips for software rendering: </ol> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/postprocess.html b/mesalib/docs/postprocess.html index 2a3796942..06a45930e 100644 --- a/mesalib/docs/postprocess.html +++ b/mesalib/docs/postprocess.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Gallium Post-processing</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Gallium Post-processing</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Gallium Post-processing</H1> +<h1>Gallium Post-processing</h1> <p> The Gallium drivers support user-defined image post-processing. @@ -25,7 +26,7 @@ Multiple filters can be used together. </p> -<H2>PP environment variables</H2> +<h2>PP environment variables</h2> <ul> <li>PP_DEBUG - If defined debug information will be printed to stderr. @@ -52,5 +53,5 @@ Numbers higher than 8 see minimizing gains. <br> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/precompiled.html b/mesalib/docs/precompiled.html index 50cb2af60..32aaeb891 100644 --- a/mesalib/docs/precompiled.html +++ b/mesalib/docs/precompiled.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Precompiled libraries</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Precompiled libraries</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Precompiled Libraries</H1> +<h1>Precompiled Libraries</h1> <p> In general, precompiled Mesa libraries are not available. @@ -16,5 +17,5 @@ However, some Linux distros (such as Ubuntu) seem to closely track Mesa and often have the latest Mesa release available as an update. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/relnotes-6.4.1.html b/mesalib/docs/relnotes-6.4.1.html index 3d6ff1c4f..c4451f84f 100644 --- a/mesalib/docs/relnotes-6.4.1.html +++ b/mesalib/docs/relnotes-6.4.1.html @@ -37,7 +37,7 @@ bd003bb4f981a4f91dee4c38644d4f3f MesaGLUT-6.4.1.tar.bz2 <li>fragment program fog option didn't work with glDrawPixels, glBitmap <li>USE_MGL_NAMESPACE didn't work for x86-64 <li>OSMesa demos were missing from previous release tarballs -<li>fixed problem with float->ushort conversion in glClear (bug 4992) +<li>fixed problem with float->ushort conversion in glClear (bug 4992) <li>popping of GL_EYE_PLANE texgen state was broken (bug 4996) <li>popping of GL_SPOT_DIRECTION light state was broken (bug 5005) <li>fixed occasional triangle color interpolation problem on VMS diff --git a/mesalib/docs/relnotes-6.5.2.html b/mesalib/docs/relnotes-6.5.2.html index db2038ab0..ec220f3ac 100644 --- a/mesalib/docs/relnotes-6.5.2.html +++ b/mesalib/docs/relnotes-6.5.2.html @@ -52,7 +52,7 @@ copy texturing). <li>New <code>minstall</code> script to replace normal install program <li>Faster fragment program execution in software <li>Added (or fixed) support for <a href="http://www.opengl.org/registry/specs/SGI/make_current_read.txt"> - GLX_SGI_make_current_read</a> to the following drivers:</li> + GLX_SGI_make_current_read</a> to the following drivers: <ul> <li>radeon</li> <li>savage</li> diff --git a/mesalib/docs/relnotes-7.1.html b/mesalib/docs/relnotes-7.1.html index e8a39c8d3..f7a612872 100644 --- a/mesalib/docs/relnotes-7.1.html +++ b/mesalib/docs/relnotes-7.1.html @@ -17,7 +17,7 @@ It should be relatively stable, but those who are especially concerned about stability should wait for Mesa 7.2 or use Mesa 7.0.4 (the previous stable release). </p> -</> +<p> Note that this version of Mesa does not use the GEM memory manager. The master branch of git uses GEM. </p> diff --git a/mesalib/docs/relnotes-7.10.1.html b/mesalib/docs/relnotes-7.10.1.html index ea605d966..134591e33 100644 --- a/mesalib/docs/relnotes-7.10.1.html +++ b/mesalib/docs/relnotes-7.10.1.html @@ -185,7 +185,7 @@ with <tt>in</tt>, <tt>out</tt>, <tt>attribute</tt>, and <tt>varying</tt>.</li> <li>mesa: Change OES_standard_derivatives to be stand-alone extension</li> <li>i915: Disable extension OES_standard_derivatives</li> <li>glcpp: Raise error when modulus is zero</li> - <li>glsl: Set operators '%' and '%=' to be reserved when GLSL < 1.30</li> + <li>glsl: Set operators '%' and '%=' to be reserved when GLSL < 1.30</li> <li>glsl: Reinstate constant-folding for division by zero</li> <li>tnl: Add support for datatype GL_FIXED in vertex arrays</li> </ul></p> @@ -374,7 +374,5 @@ with <tt>in</tt>, <tt>out</tt>, <tt>attribute</tt>, and <tt>varying</tt>.</li> <li>glx: Put null check before use</li> </ul></p> -</p> - </body> </html> diff --git a/mesalib/docs/relnotes-7.10.3.html b/mesalib/docs/relnotes-7.10.3.html index 9ac5ef28e..68cc925e6 100644 --- a/mesalib/docs/relnotes-7.10.3.html +++ b/mesalib/docs/relnotes-7.10.3.html @@ -55,9 +55,9 @@ d77b02034c11d6c2a55c07f82367d780 MesaLib-7.10.3.tar.gz <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=32835">Bug 32835</a> - [glsl] recursive #define results in infinite stack recursion</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=33303">Bug 33303</a> - [glsl] ir_constant_expression.cpp:72: virtual ir_constant* ir_expression::constant_expression_value(): Assertion `op[0]->type->base_type == op[1]->type->base_type' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=33303">Bug 33303</a> - [glsl] ir_constant_expression.cpp:72: virtual ir_constant* ir_expression::constant_expression_value(): Assertion `op[0]->type->base_type == op[1]->type->base_type' failed.</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=33314">Bug 33314</a> - [glsl] ir_constant_expression.cpp:122: virtual ir_constant* ir_expression::constant_expression_value(): Assertion `op[0]->type->base_type == GLSL_TYPE_BOOL' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=33314">Bug 33314</a> - [glsl] ir_constant_expression.cpp:122: virtual ir_constant* ir_expression::constant_expression_value(): Assertion `op[0]->type->base_type == GLSL_TYPE_BOOL' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=33512">Bug 33512</a> - [SNB] case ogles2conform/GL/gl_FragCoord/gl_FragCoord_xy_frag.test and gl_FragCoord_w_frag.test fail</li> @@ -160,7 +160,7 @@ d77b02034c11d6c2a55c07f82367d780 MesaLib-7.10.3.tar.gz <li>mesa: Use _mesa_get_format_bytes to refactor out the RB get_pointer_*</li> <li>mesa: Use _mesa_get_format_bytes to refactor out the RB get_row_*</li> <li>mesa: Add renderbuffer accessors for R8/RG88/R16/RG1616.</li> - <li>swrast: Don't try to adjust_colors for <8bpc when handling R16, RG1616.</li> + <li>swrast: Don't try to adjust_colors for <8bpc when handling R16, RG1616.</li> <li>intel: Use mesa core's R8, RG88, R16, RG1616 RB accessors.</li> <li>Revert "intel: Add spans code for the ARB_texture_rg support."</li> <li>mesa: Add support for the ARB_fragment_program part of ARB_draw_buffers.</li> diff --git a/mesalib/docs/relnotes-7.10.html b/mesalib/docs/relnotes-7.10.html index 3f4f229b0..bb5fde502 100644 --- a/mesalib/docs/relnotes-7.10.html +++ b/mesalib/docs/relnotes-7.10.html @@ -79,7 +79,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31194">Bug 31194</a> - The mesa meta save/restore code doesn't ref the current GLSL program</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31371">Bug 31371</a> - glslparsertest: ir.cpp:358: ir_constant::ir_constant(const glsl_type*, const ir_constant_data*): Assertion `(type->base_type >= 0) && (type->base_type <= 3)' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31371">Bug 31371</a> - glslparsertest: ir.cpp:358: ir_constant::ir_constant(const glsl_type*, const ir_constant_data*): Assertion `(type->base_type >= 0) && (type->base_type <= 3)' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31439">Bug 31439</a> - Crash in glBufferSubData() with size == 0</li> @@ -91,7 +91,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31617">Bug 31617</a> - Radeon/Compiz: 'failed to attach dri2 front buffer', error case not handled</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31648">Bug 31648</a> - [GLSL] array-struct-array gets assertion: `(size >= 1) && (size <= 4)' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31648">Bug 31648</a> - [GLSL] array-struct-array gets assertion: `(size >= 1) && (size <= 4)' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31650">Bug 31650</a> - [GLSL] varying gl_TexCoord fails to be re-declared to different size in the second shader</li> @@ -527,7 +527,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li>glsl: Add glsl_type::uvecN_type for N=2,3</li> <li>glsl: Add lexer rules for uint and uvecN (N=2..4)</li> <li>glsl: Changes in generated file glsl_lexer.cpp</li> - <li>glsl: Add lexer rules for << and >> in GLSL 1.30</li> + <li>glsl: Add lexer rules for << and >> in GLSL 1.30</li> <li>glsl: Change generated file glsl_lexer.cpp</li> <li>glsl: Implement ast-to-hir for binary shifts in GLSL 1.30</li> <li>glsl: Implement constant expr evaluation for bitwise-not</li> @@ -1824,7 +1824,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li>llvmpipe: use llvm for attribute interpolant calculation</li> <li>graw: add frag-face shader</li> <li>llvmpipe: fix flatshading in new line code</li> - <li>draw: don't apply flatshading to clipped tris with <3 verts</li> + <li>draw: don't apply flatshading to clipped tris with <3 verts</li> <li>llvmpipe: handle FACING interpolants in line and point setup</li> <li>llvmpipe: handle up to 8 planes in triangle binner</li> <li>llvmpipe: make debug_fs_variant respect variant->nr_samplers</li> @@ -1968,7 +1968,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li>glsl: Rename various ir_* files to lower_* and opt_*.</li> <li>glcpp: Define GL_FRAGMENT_PRECISION_HIGH if GLSL version >= 1.30.</li> <li>Refresh autogenerated glcpp parser.</li> - <li>glsl: Fix constant expression handling for <, >, <=, >= on vectors.</li> + <li>glsl: Fix constant expression handling for <, >, <=, >= on vectors.</li> <li>glsl: Unconditionally define GL_FRAGMENT_PRECISION_HIGH in ES2 shaders.</li> <li>Regenerate glcpp parser.</li> <li>glsl: Reimplement the "cross" built-in without ir_binop_cross.</li> @@ -2685,7 +2685,7 @@ bc644be551ed585fc4f66c16b64a91c9 MesaGLUT-7.10.tar.gz <li>nv50: fix size of outputs_written array</li> <li>nv50: apply layout_mask to tile_flags</li> <li>nvfx: only expose one rt on nv30</li> - <li>nvfx: fb->nr_cbufs <= 1 on nv30</li> + <li>nvfx: fb->nr_cbufs <= 1 on nv30</li> <li>nvfx: reset nvfx->hw_zeta</li> <li>nvfx: fixes after array textures merge</li> <li>init ps->context with util_surfaces_get and do_get</li> diff --git a/mesalib/docs/relnotes-7.11.html b/mesalib/docs/relnotes-7.11.html index 52033cf1e..10be4c935 100644 --- a/mesalib/docs/relnotes-7.11.html +++ b/mesalib/docs/relnotes-7.11.html @@ -320,7 +320,7 @@ did not exist in the 7.10 release series at all.</p> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=39257">Bug 39257</a> - [bisected SNB]Mesa demos engine causes GPU hang</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=39487">Bug 39487</a> - [i965] brw_wm_surface_state.c:495: brw_update_renderbuffer_surface: Assertion `brw->>has_surface_tile_offset || (tile_x == 0 && tile_y == 0)' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=39487">Bug 39487</a> - [i965] brw_wm_surface_state.c:495: brw_update_renderbuffer_surface: Assertion `brw->has_surface_tile_offset || (tile_x == 0 && tile_y == 0)' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=39515">Bug 39515</a> - FTBFS: libEGL depends on libgbm, but libEGL builds first</li> diff --git a/mesalib/docs/relnotes-7.9.1.html b/mesalib/docs/relnotes-7.9.1.html index bef4ef1dd..f45fa48bf 100644 --- a/mesalib/docs/relnotes-7.9.1.html +++ b/mesalib/docs/relnotes-7.9.1.html @@ -65,7 +65,7 @@ ee9ecae4ca56fbb2d14dc15e3a0a7640 MesaGLUT-7.9.1.tar.gz <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31194">Bug 31194</a> - The mesa meta save/restore code doesn't ref the current GLSL program</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31371">Bug 31371</a> - glslparsertest: ir.cpp:358: ir_constant::ir_constant(const glsl_type*, const ir_constant_data*): Assertion `(type->base_type >= 0) && (type->base_type <= 3)' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31371">Bug 31371</a> - glslparsertest: ir.cpp:358: ir_constant::ir_constant(const glsl_type*, const ir_constant_data*): Assertion `(type->base_type >= 0) && (type->base_type <= 3)' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31439">Bug 31439</a> - Crash in glBufferSubData() with size == 0</li> @@ -73,11 +73,11 @@ ee9ecae4ca56fbb2d14dc15e3a0a7640 MesaGLUT-7.9.1.tar.gz <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31514">Bug 31514</a> - isBuffer returns true for unbound buffers</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31560">Bug 31560</a> - [tdfx] tdfx_tex.c:702: error: ‘const struct gl_color_table’ has no member named ‘Format’</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31560">Bug 31560</a> - [tdfx] tdfx_tex.c:702: error: 'const struct gl_color_table' has no member named 'Format'</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31617">Bug 31617</a> - Radeon/Compiz: 'failed to attach dri2 front buffer', error case not handled</li> -<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31648">Bug 31648</a> - [GLSL] array-struct-array gets assertion: `(size >= 1) && (size <= 4)' failed.</li> +<li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31648">Bug 31648</a> - [GLSL] array-struct-array gets assertion: `(size >= 1) && (size <= 4)' failed.</li> <li><a href="https://bugs.freedesktop.org/show_bug.cgi?id=31650">Bug 31650</a> - [GLSL] varying gl_TexCoord fails to be re-declared to different size in the second shader</li> @@ -293,7 +293,7 @@ ee9ecae4ca56fbb2d14dc15e3a0a7640 MesaGLUT-7.9.1.tar.gz <li>ir_dead_functions: Actually free dead functions and signatures.</li> <li>glcpp: Define GL_FRAGMENT_PRECISION_HIGH if GLSL version >= 1.30.</li> <li>glsl: Unconditionally define GL_FRAGMENT_PRECISION_HIGH in ES2 shaders.</li> - <li>glsl: Fix constant expression handling for <, >, <=, >= on vectors.</li> + <li>glsl: Fix constant expression handling for <, >, <=, >= on vectors.</li> <li>glsl: Use do_common_optimization in the standalone compiler.</li> <li>glsl: Don't inline function prototypes.</li> <li>glsl: Add a virtual as_discard() method.</li> diff --git a/mesalib/docs/relnotes-7.9.2.html b/mesalib/docs/relnotes-7.9.2.html index 65929cc2a..82240441b 100644 --- a/mesalib/docs/relnotes-7.9.2.html +++ b/mesalib/docs/relnotes-7.9.2.html @@ -330,7 +330,6 @@ with <tt>in</tt>, <tt>out</tt>, <tt>attribute</tt>, and <tt>varying</tt>.</li> <ul> <li>glx: Put null check before use</li> </ul></p> -</p> </body> </html> diff --git a/mesalib/docs/relnotes-8.0.2.html b/mesalib/docs/relnotes-8.0.2.html index d73ba9f92..88f730c16 100644 --- a/mesalib/docs/relnotes-8.0.2.html +++ b/mesalib/docs/relnotes-8.0.2.html @@ -86,7 +86,7 @@ d5e5cdb85d2afdbcd1c0623d3ed1c54d MesaLib-8.0.2.zip <p>Daniel Vetter (1): <ul> <li>i965: fixup W-tile offset computation to take swizzling into account</li> -<ul></p> +</ul></p> <p>Dylan Noblesmith (1): <ul> diff --git a/mesalib/docs/relnotes-8.0.3.html b/mesalib/docs/relnotes-8.0.3.html index dd27befd2..94997a7d7 100644 --- a/mesalib/docs/relnotes-8.0.3.html +++ b/mesalib/docs/relnotes-8.0.3.html @@ -184,7 +184,7 @@ cc5ee15e306b8c15da6a478923797171 MesaLib-8.0.3.tar.bz2 <li>mesa: Include the multisample enables under GL_MULTISAMPLE_BIT attrib as well.</li> <li>mesa: Fix display list handling for GL_ARB_draw_instanced.</li> <li>mesa: Fix display lists for draw_elements_base_vertex with draw_instanced.</li> - <li>mesa: Add missing error check for first < 0 in glDrawArraysInstanced().</li> + <li>mesa: Add missing error check for first < 0 in glDrawArraysInstanced().</li> <li>i915: Fix piglit fbo-nodepth-test on i830.</li> <li>intel: Return success when asked to allocate a 0-width/height renderbuffer.</li> <li>mesa: Throw error on glGetActiveUniform inside Begin/End.</li> @@ -256,7 +256,7 @@ cc5ee15e306b8c15da6a478923797171 MesaLib-8.0.3.tar.bz2 <li>drirc: Add force_glsl_extensions_warn workaround for Unigine Heaven.</li> <li>i965: Avoid explicit accumulator operands in SIMD16 mode on Gen7.</li> <li>intel: Remove pointless software fallback for glBitmap on Gen6.</li> - <li>glsl: Fix broken constant expression handling for <, <=, >, and >=.</li> + <li>glsl: Fix broken constant expression handling for <, <=, >, and >=.</li> </ul></p> <p>Kurt Roeckx (2): diff --git a/mesalib/docs/relnotes.html b/mesalib/docs/relnotes.html index 1bc889a5b..e9d0a9132 100644 --- a/mesalib/docs/relnotes.html +++ b/mesalib/docs/relnotes.html @@ -1,94 +1,95 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Release Notes</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Release Notes</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Release Notes</H1> +<h1>Release Notes</h1> <p> The release notes summarize what's new or changed in each Mesa release. </p> -<UL> -<LI><A HREF="relnotes-8.0.3.html">8.0.3 release notes</A> -<LI><A HREF="relnotes-8.0.2.html">8.0.2 release notes</A> -<LI><A HREF="relnotes-8.0.1.html">8.0.1 release notes</A> -<LI><A HREF="relnotes-8.0.html">8.0 release notes</A> -<LI><A HREF="relnotes-7.11.html">7.11 release notes</A> -<LI><A HREF="relnotes-7.10.3.html">7.10.3 release notes</A> -<LI><A HREF="relnotes-7.10.2.html">7.10.2 release notes</A> -<LI><A HREF="relnotes-7.10.1.html">7.10.1 release notes</A> -<LI><A HREF="relnotes-7.10.html">7.10 release notes</A> -<LI><A HREF="relnotes-7.9.2.html">7.9.2 release notes</A> -<LI><A HREF="relnotes-7.9.1.html">7.9.1 release notes</A> -<LI><A HREF="relnotes-7.9.html">7.9 release notes</A> -<LI><A HREF="relnotes-7.8.3.html">7.8.3 release notes</A> -<LI><A HREF="relnotes-7.8.2.html">7.8.2 release notes</A> -<LI><A HREF="relnotes-7.8.1.html">7.8.1 release notes</A> -<LI><A HREF="relnotes-7.8.html">7.8 release notes</A> -<LI><A HREF="relnotes-7.7.1.html">7.7.1 release notes</A> -<LI><A HREF="relnotes-7.7.html">7.7 release notes</A> -<LI><A HREF="relnotes-7.6.1.html">7.6.1 release notes</A> -<LI><A HREF="relnotes-7.6.html">7.6 release notes</A> -<LI><A HREF="relnotes-7.5.2.html">7.5.2 release notes</A> -<LI><A HREF="relnotes-7.5.1.html">7.5.1 release notes</A> -<LI><A HREF="relnotes-7.5.html">7.5 release notes</A> -<LI><A HREF="relnotes-7.4.4.html">7.4.4 release notes</A> -<LI><A HREF="relnotes-7.4.3.html">7.4.3 release notes</A> -<LI><A HREF="relnotes-7.4.2.html">7.4.2 release notes</A> -<LI><A HREF="relnotes-7.4.1.html">7.4.1 release notes</A> -<LI><A HREF="relnotes-7.4.html">7.4 release notes</A> -<LI><A HREF="relnotes-7.3.html">7.3 release notes</A> -<LI><A HREF="relnotes-7.2.html">7.2 release notes</A> -<LI><A HREF="relnotes-7.1.html">7.1 release notes</A> -<LI><A HREF="relnotes-7.0.4.html">7.0.4 release notes</A> -<LI><A HREF="relnotes-7.0.3.html">7.0.3 release notes</A> -<LI><A HREF="relnotes-7.0.2.html">7.0.2 release notes</A> -<LI><A HREF="relnotes-7.0.1.html">7.0.1 release notes</A> -<LI><A HREF="relnotes-7.0.html">7.0 release notes</A> -<LI><A HREF="relnotes-6.5.3.html">6.5.3 release notes</A> -<LI><A HREF="relnotes-6.5.2.html">6.5.2 release notes</A> -<LI><A HREF="relnotes-6.5.1.html">6.5.1 release notes</A> -<LI><A HREF="relnotes-6.5.html">6.5 release notes</A> -<LI><A HREF="relnotes-6.4.2.html">6.4.2 release notes</A> -<LI><A HREF="relnotes-6.4.1.html">6.4.1 release notes</A> -<LI><A HREF="relnotes-6.4.html">6.4 release notes</A> -</UL +<ul> +<li><a href="relnotes-8.0.3.html">8.0.3 release notes</a> +<li><a href="relnotes-8.0.2.html">8.0.2 release notes</a> +<li><a href="relnotes-8.0.1.html">8.0.1 release notes</a> +<li><a href="relnotes-8.0.html">8.0 release notes</a> +<li><a href="relnotes-7.11.html">7.11 release notes</a> +<li><a href="relnotes-7.10.3.html">7.10.3 release notes</a> +<li><a href="relnotes-7.10.2.html">7.10.2 release notes</a> +<li><a href="relnotes-7.10.1.html">7.10.1 release notes</a> +<li><a href="relnotes-7.10.html">7.10 release notes</a> +<li><a href="relnotes-7.9.2.html">7.9.2 release notes</a> +<li><a href="relnotes-7.9.1.html">7.9.1 release notes</a> +<li><a href="relnotes-7.9.html">7.9 release notes</a> +<li><a href="relnotes-7.8.3.html">7.8.3 release notes</a> +<li><a href="relnotes-7.8.2.html">7.8.2 release notes</a> +<li><a href="relnotes-7.8.1.html">7.8.1 release notes</a> +<li><a href="relnotes-7.8.html">7.8 release notes</a> +<li><a href="relnotes-7.7.1.html">7.7.1 release notes</a> +<li><a href="relnotes-7.7.html">7.7 release notes</a> +<li><a href="relnotes-7.6.1.html">7.6.1 release notes</a> +<li><a href="relnotes-7.6.html">7.6 release notes</a> +<li><a href="relnotes-7.5.2.html">7.5.2 release notes</a> +<li><a href="relnotes-7.5.1.html">7.5.1 release notes</a> +<li><a href="relnotes-7.5.html">7.5 release notes</a> +<li><a href="relnotes-7.4.4.html">7.4.4 release notes</a> +<li><a href="relnotes-7.4.3.html">7.4.3 release notes</a> +<li><a href="relnotes-7.4.2.html">7.4.2 release notes</a> +<li><a href="relnotes-7.4.1.html">7.4.1 release notes</a> +<li><a href="relnotes-7.4.html">7.4 release notes</a> +<li><a href="relnotes-7.3.html">7.3 release notes</a> +<li><a href="relnotes-7.2.html">7.2 release notes</a> +<li><a href="relnotes-7.1.html">7.1 release notes</a> +<li><a href="relnotes-7.0.4.html">7.0.4 release notes</a> +<li><a href="relnotes-7.0.3.html">7.0.3 release notes</a> +<li><a href="relnotes-7.0.2.html">7.0.2 release notes</a> +<li><a href="relnotes-7.0.1.html">7.0.1 release notes</a> +<li><a href="relnotes-7.0.html">7.0 release notes</a> +<li><a href="relnotes-6.5.3.html">6.5.3 release notes</a> +<li><a href="relnotes-6.5.2.html">6.5.2 release notes</a> +<li><a href="relnotes-6.5.1.html">6.5.1 release notes</a> +<li><a href="relnotes-6.5.html">6.5 release notes</a> +<li><a href="relnotes-6.4.2.html">6.4.2 release notes</a> +<li><a href="relnotes-6.4.1.html">6.4.1 release notes</a> +<li><a href="relnotes-6.4.html">6.4 release notes</a> +</ul> <p> Versions of Mesa prior to 6.4 are summarized in the <a href="versions.html">versions file</a> and the following release notes. </p> -<UL> -<LI><A HREF="RELNOTES-6.3.2">RELNOTES-6.3.2</A> -<LI><A HREF="RELNOTES-6.3">RELNOTES-6.3</A> -<LI><A HREF="RELNOTES-6.2.1">RELNOTES-6.2.1</A> -<LI><A HREF="RELNOTES-6.2">RELNOTES-6.2</A> -<LI><A HREF="RELNOTES-6.1">RELNOTES-6.1</A> -<LI><A HREF="RELNOTES-6.0">RELNOTES-6.0</A> -<LI><A HREF="RELNOTES-5.1">RELNOTES-5.1</A> -<LI><A HREF="RELNOTES-5.0.2">RELNOTES-5.0.2</A> -<LI><A HREF="RELNOTES-5.0.1">RELNOTES-5.0.1</A> -<LI><A HREF="RELNOTES-5.0">RELNOTES-5.0</A> -<LI><A HREF="RELNOTES-4.1">RELNOTES-4.1</A> -<LI><A HREF="RELNOTES-4.0.3">RELNOTES-4.0.3</A> -<LI><A HREF="RELNOTES-4.0.2">RELNOTES-4.0.2</A> -<LI><A HREF="RELNOTES-4.0.1">RELNOTES-4.0.1</A> -<LI><A HREF="RELNOTES-4.0">RELNOTES-4.0</A> -<LI><A HREF="RELNOTES-3.5">RELNOTES-3.5</A> -<LI><A HREF="RELNOTES-3.4.2">RELNOTES-3.4.2</A> -<LI><A HREF="RELNOTES-3.4.1">RELNOTES-3.4.1</A> -<LI><A HREF="RELNOTES-3.4">RELNOTES-3.4</A> -<LI><A HREF="RELNOTES-3.3">RELNOTES-3.3</A> -<LI><A HREF="RELNOTES-3.2.1">RELNOTES-3.2.1</A> -<LI><A HREF="RELNOTES-3.2">RELNOTES-3.2</A> -<LI><A HREF="RELNOTES-3.1">RELNOTES-3.1</A> -</UL> +<ul> +<li><a href="RELNOTES-6.3.2">RELNOTES-6.3.2</a> +<li><a href="RELNOTES-6.3">RELNOTES-6.3</a> +<li><a href="RELNOTES-6.2.1">RELNOTES-6.2.1</a> +<li><a href="RELNOTES-6.2">RELNOTES-6.2</a> +<li><a href="RELNOTES-6.1">RELNOTES-6.1</a> +<li><a href="RELNOTES-6.0">RELNOTES-6.0</a> +<li><a href="RELNOTES-5.1">RELNOTES-5.1</a> +<li><a href="RELNOTES-5.0.2">RELNOTES-5.0.2</a> +<li><a href="RELNOTES-5.0.1">RELNOTES-5.0.1</a> +<li><a href="RELNOTES-5.0">RELNOTES-5.0</a> +<li><a href="RELNOTES-4.1">RELNOTES-4.1</a> +<li><a href="RELNOTES-4.0.3">RELNOTES-4.0.3</a> +<li><a href="RELNOTES-4.0.2">RELNOTES-4.0.2</a> +<li><a href="RELNOTES-4.0.1">RELNOTES-4.0.1</a> +<li><a href="RELNOTES-4.0">RELNOTES-4.0</a> +<li><a href="RELNOTES-3.5">RELNOTES-3.5</a> +<li><a href="RELNOTES-3.4.2">RELNOTES-3.4.2</a> +<li><a href="RELNOTES-3.4.1">RELNOTES-3.4.1</a> +<li><a href="RELNOTES-3.4">RELNOTES-3.4</a> +<li><a href="RELNOTES-3.3">RELNOTES-3.3</a> +<li><a href="RELNOTES-3.2.1">RELNOTES-3.2.1</a> +<li><a href="RELNOTES-3.2">RELNOTES-3.2</a> +<li><a href="RELNOTES-3.1">RELNOTES-3.1</a> +</ul> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/repository.html b/mesalib/docs/repository.html index bdd2b577b..3e05871fd 100644 --- a/mesalib/docs/repository.html +++ b/mesalib/docs/repository.html @@ -1,10 +1,11 @@ -<HTML> - -<TITLE>Code Repository</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Code Repository</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> <h1>Code Repository</h1> @@ -13,6 +14,7 @@ Mesa uses <a href="http://git.or.cz/"target="_parent">git</a> as its source code management system. </p> +<p> The master git repository is hosted on <a href="http://www.freedesktop.org" target="_parent">freedesktop.org</a>. </p> @@ -33,8 +35,7 @@ target="_parent">Mesa demos and tests git repository</a>. </p> -<a name="anonymous"> -<H2>Anonymous git Access</H2> +<h2 id="anonymous">Anonymous git Access</h2> <p> To get the Mesa sources anonymously (read-only): @@ -57,8 +58,7 @@ To get the Mesa sources anonymously (read-only): </ol> -<a name="developer"> -<H2>Developer git Access</H2> +<h2 id="developer">Developer git Access</h2> <p> Mesa developers need to first have an account on @@ -92,7 +92,7 @@ Once your account is established: </ol> -<H2>Windows Users</H2> +<h2>Windows Users</h2> <p> If you're <a href="http://git.or.cz/gitwiki/WindowsInstall" target="_parent"> @@ -113,8 +113,7 @@ Unix users don't need to set this option. <br> -<a name="developer"> -<H2>Development Branches</H2> +<h2>Development Branches</h2> <p> At any given time, there may be several active branches in Mesa's @@ -132,7 +131,7 @@ Questions about branch status/activity should be posted to the mesa3d-dev mailing list. </p> -<H2>Developer Git Tips</H2> +<h2>Developer Git Tips</h2> <ol> <li>Setting up to edit the master branch @@ -144,6 +143,7 @@ branch, try: git config branch.master.remote origin git config branch.master.merge master </pre> +<p> Otherwise, you have to say<code> git pull origin master </code> each time you do a pull. </p> @@ -162,6 +162,7 @@ If it has been awhile since you've done the initial clone, try <pre> git pull </pre> +<p> to get the latest files before you start working. </p> <p> @@ -170,6 +171,7 @@ Make your changes and use git add <files to commit> git commit </pre> +<p> to get your changes ready to push back into the fd.o repository. </p> <p> @@ -185,12 +187,13 @@ To avoid this, git pull --rebase git push </pre> +<p> If you are familiar with CVS or similar system, this is similar to doing a <code> cvs update </code> in order to update your source tree to the current repository state, instead of the time you did the last update. (CVS doesn't work like git in this respect, but this is easiest way to explain it.) -</br> +<br> In any case, your repository now looks like you made your changes after all the other changes. </p> @@ -212,5 +215,3 @@ See <a href="http://www.eecs.harvard.edu/~cduan/technical/git/" target="_parent" </body> </html> - - diff --git a/mesalib/docs/science.html b/mesalib/docs/science.html index 0b3384303..c701db3e3 100644 --- a/mesalib/docs/science.html +++ b/mesalib/docs/science.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Science and Technical</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Science and Technical</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Science and Technical</H1> +<h1>Science and Technical</h1> <ul> <li><a href="http://www.softintegration.com/products/toolkit/opengl/" target="_parent">Ch</a> - OpenGL bindings for the Ch C/C++ interpreter @@ -48,7 +49,6 @@ <li><a href="http://orsa.sourceforge.net/" target="_parent">ORSA</a> - An interactive tool for Celestial Mechanics </li> <li><a href="http://www.paraview.org/" target="_parent">ParaView</a> - Scientific visualization package - </li> </li><li><a href="http://root.cern.ch/" target="_parent">ROOT</a> - Object Oriented Data Analysis Framework </li><li><a href="http://www.slffea.com/" target="_parent">SLFFEA</a> - GNU finite element @@ -63,7 +63,9 @@ modeling </li><li><a href="http://www.cyberbotics.com/" target="_parent">Webots</a> - 3-D mobile robot simulator -</li></ul> + </li> +</ul> -</body></html> +</body> +</html> diff --git a/mesalib/docs/shading.html b/mesalib/docs/shading.html index aba395974..175e02460 100644 --- a/mesalib/docs/shading.html +++ b/mesalib/docs/shading.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Shading Language Support</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Shading Language Support</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Shading Language Support</H1> +<h1>Shading Language Support</h1> <p> This page describes the features and status of Mesa's support for the @@ -19,7 +20,7 @@ Contents </p> <ul> <li><a href="#envvars">Environment variables</a> -<li><a href="#120">GLSL 1.20 support</a> +<li><a href="#glsl120">GLSL 1.20 support</a> <li><a href="#unsup">Unsupported Features</a> <li><a href="#notes">Implementation Notes</a> <li><a href="#hints">Programming Hints</a> @@ -29,9 +30,7 @@ Contents </ul> - -<a name="envvars"> -<h2>Environment Variables</h2> +<h2 id="envvars">Environment Variables</h2> <p> The <b>MESA_GLSL</b> environment variable can be set to a comma-separated @@ -58,8 +57,7 @@ Example: export MESA_GLSL=dump,nopt </p> -<a name="120"> -<h2>GLSL Version</h2> +<h2 id="glsl120">GLSL Version</h2> <p> The GLSL compiler currently supports version 1.20 of the shading language. @@ -76,8 +74,7 @@ Several GLSL extensions are also supported: </ul> -<a name="unsup"> -<h2>Unsupported Features</h2> +<h2 id="unsup">Unsupported Features</h2> <p>XXX update this section</p> @@ -100,8 +97,7 @@ All other major features of the shading language should function. </p> -<a name="notes"> -<h2>Implementation Notes</h2> +<h2 id="notes">Implementation Notes</h2> <ul> <li>Shading language programs are compiled into low-level programs @@ -124,8 +120,7 @@ These issues will be addressed/resolved in the future. </p> -<a name="hints"> -<h2>Programming Hints</h2> +<h2 id="hints">Programming Hints</h2> <ul> <li>Use the built-in library functions whenever possible. @@ -141,8 +136,7 @@ These issues will be addressed/resolved in the future. </ul> -<a name="standalone"> -<h2>Stand-alone GLSL Compiler</h2> +<h2 id="standalone">Stand-alone GLSL Compiler</h2> <p> The stand-alone GLSL compiler program can be used to compile GLSL shaders @@ -151,7 +145,7 @@ into low-level GPU code. <p> This tool is useful for: -<p> +</p> <ul> <li>Inspecting GPU code to gain insight into compilation <li>Generating initial GPU code for subsequent hand-tuning @@ -179,10 +173,7 @@ Options include </ul> - - -<a name="implementation"> -<h2>Compiler Implementation</h2> +<h2 id="implementation">Compiler Implementation</h2> <p> The source code for Mesa's shading language compiler is in the @@ -240,13 +231,11 @@ This option is only relevant if EmitHighLevelInstructions is set. <br> If set, instructions will be annoted with comments to help with debugging. Extra NOP instructions will also be inserted. -</br> - +</li> </ul> -<a name="validation"> -<h2>Compiler Validation</h2> +<h2 id="validation">Compiler Validation</h2> <p> Developers working on the GLSL compiler should test frequently to avoid @@ -264,5 +253,5 @@ tests GLSL features. The Mesa demos repository also has some good GLSL tests. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/sourcedocs.html b/mesalib/docs/sourcedocs.html index 90538af5c..2b1633c67 100644 --- a/mesalib/docs/sourcedocs.html +++ b/mesalib/docs/sourcedocs.html @@ -1,15 +1,16 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Source Code Documentation</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Source Code Documentation</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Source Code Documentation</H1> +<h1>Source Code Documentation</h1> <p> -<A HREF="http://www.doxygen.org" target="_parent">Doxygen</A> +<a href="http://www.doxygen.org" target="_parent">Doxygen</a> is used to automatically produce cross-referenced documentation from the Mesa source code. </p> @@ -27,11 +28,11 @@ such as <a href="http://webcvs.freedesktop.org/mesa/Mesa/src/mesa/main/bufferobj </p> -<P> +<p> If you're reading this page from your local copy of Mesa, and have run the doxygen scripts, you can read the documentation -<A HREF="../doxygen/main/index.html" target="_parent">here</A> -</P> +<a href="../doxygen/main/index.html" target="_parent">here</a> +</p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/sourcetree.html b/mesalib/docs/sourcetree.html index e26c653ab..abc5e3986 100644 --- a/mesalib/docs/sourcetree.html +++ b/mesalib/docs/sourcetree.html @@ -1,10 +1,11 @@ -<HTML> - -<TITLE>Mesa Source Tree</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Source Tree</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> <h1>Mesa source code tree overview</h1> @@ -157,5 +158,5 @@ each directory. </ul> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/subset-A.html b/mesalib/docs/subset-A.html index d576bb674..6dcd84374 100644 --- a/mesalib/docs/subset-A.html +++ b/mesalib/docs/subset-A.html @@ -1,21 +1,15 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Mini GLX Specification</title> </head> <body> <span style="font-style: italic;"></span><span style="font-weight: bold;"></span> -<h1> -<center>Mesa Subset Specification</center> -</h1> -<h2> -<center> -<h3>Tungsten Graphics, Inc.</h3> -<h3>February 26, 2003<br> -</h3> -</center> -</h2> +<h1 style="text-align: center;">Mesa Subset Specification</h1> +<h2 style="text-align: center;">Tungsten Graphics, Inc.</h2> +<h2 style="text-align: center;">February 26, 2003</h2> <p> Copyright © 2002-2003 by Tungsten Graphics, Inc., Cedar Park, Texas. All Rights Reserved. <br> <br> diff --git a/mesalib/docs/subset.html b/mesalib/docs/subset.html index c706381e3..0ceb13666 100644 --- a/mesalib/docs/subset.html +++ b/mesalib/docs/subset.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Subset Driver</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Subset Driver</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Mesa Subset Driver</H1> +<h1>Mesa Subset Driver</h1> <p> In 2002/2003 Tungsten Graphics was contracted to develop a subset Mesa/Radeon @@ -20,5 +21,5 @@ The specification for this subset can be found <a href="subset-A.html">here</a>. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/systems.html b/mesalib/docs/systems.html index 62a6e0b52..999975183 100644 --- a/mesalib/docs/systems.html +++ b/mesalib/docs/systems.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Supported Systems and Drivers</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Supported Systems and Drivers</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Supported Systems and Drivers</H1> +<h1>Supported Systems and Drivers</h1> <p> Mesa is primarily developed and used on Linux systems. @@ -47,14 +48,14 @@ Software drivers include: Additional driver information: </p> -<UL> +<ul> <li><a href="http://dri.freedesktop.org/" target="_parent"> DRI hardware drivers</a> for the X Window System <li><a href="xlibdriver.html">Xlib / swrast driver</a> for the X Window System and Unix-like operating systems <li><a href="README.WIN32">Microsoft Windows</a> <li><a href="vmware-guest.html">VMware</a> guest OS driver -</UL> +</ul> <h1> @@ -80,7 +81,7 @@ The list includes: <li>DOS <li>fbdev <li>DEC/VMS -<ul> +</ul> </body> </html> diff --git a/mesalib/docs/thanks.html b/mesalib/docs/thanks.html index 2031788f0..b9a2b27cb 100644 --- a/mesalib/docs/thanks.html +++ b/mesalib/docs/thanks.html @@ -1,14 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Acknowledgements</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<HEAD> -<TITLE>Acknowledgements</TITLE> -</HEAD> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Acknowledgments</H1> +<h1>Acknowledgments</h1> The following individuals and groups are to be acknowledged for their @@ -18,8 +17,8 @@ This list is far from complete and somewhat dated, unfortunately. <ul> <li>Early Mesa development was done while Brian was part of the -<A HREF="http://www.ssec.wisc.edu/~billh/vis.html" -target="_parent">SSEC Visualization Project</A> at the University of +<a href="http://www.ssec.wisc.edu/~billh/vis.html" +target="_parent">SSEC Visualization Project</a> at the University of Wisconsin. He'd like to thank Bill Hibbard for letting him work on Mesa as part of that project. <br> @@ -34,11 +33,11 @@ Tungsten Graphics, Inc. have supported the ongoing development of Mesa. <br> <br> <li>The -<A HREF="http://sourceforge.net/projects/mesa3d" target="_parent">Mesa</A> +<a href="http://sourceforge.net/projects/mesa3d" target="_parent">Mesa</a> website is hosted by -<A HREF="http://sourceforge.net" target="_parent"> -<IMG SRC="http://sourceforge.net/sflogo.php?group_id=3&type=1" -WIDTH="88" HEIGHT="31" ALIGN="BOTTOM" ALT="Sourceforge.net" BORDER="0"></A> +<a href="http://sourceforge.net" target="_parent"> +<img src="http://sourceforge.net/sflogo.php?group_id=3&type=1" +width="88" height="31" align="bottom" alt="Sourceforge.net" border="0"></a> <br> <br> @@ -130,5 +129,5 @@ Please send corrections and additions to Brian. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/utilities.html b/mesalib/docs/utilities.html index 4693639b8..c74816944 100644 --- a/mesalib/docs/utilities.html +++ b/mesalib/docs/utilities.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Development Utilities</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Development Utilities</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Development Utilities</H1> +<h1>Development Utilities</h1> <ul> @@ -23,4 +24,4 @@ memory-related problems in your code. </ul> </body> -</html>
\ No newline at end of file +</html> diff --git a/mesalib/docs/utility.html b/mesalib/docs/utility.html index dfb4a909f..23d65496b 100644 --- a/mesalib/docs/utility.html +++ b/mesalib/docs/utility.html @@ -1,12 +1,13 @@ -<HTML> - -<TITLE>Utilities</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Utilities</H1> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Utilities</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<h1>Utilities</h1> <ul> <li><a href="http://fsv.sourceforge.net/" diff --git a/mesalib/docs/versions.html b/mesalib/docs/versions.html index 84b40fd21..1993cec54 100644 --- a/mesalib/docs/versions.html +++ b/mesalib/docs/versions.html @@ -1,28 +1,27 @@ -<HTML> - -<TITLE>Mesa Version History</TITLE> - -<head><link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<body bgcolor="#eeeeee"> - -<B> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Version History</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> + +<b> NOTE: Changes for Mesa 6.4 and later are documented in the corresponding <a href="relnotes.html">release notes</a> file. -</B> +</b> -<H1>Mesa Version History</H1> +<h1>Mesa Version History</h1> -<H2>1.0 beta February 1995</H2> +<h2>1.0 beta February 1995</h2> <ul> <li>Initial release </ul> -<H2>1.1 beta March 4, 1995</H2> +<h2>1.1 beta March 4, 1995</h2> Changes: <ul> <li>faster point and line drawing (2x faster) @@ -37,7 +36,7 @@ New: <li>GLUT support </ul> -<H2>1.1.1 beta March 7, 1995</H2> +<h2>1.1.1 beta March 7, 1995</h2> Changes: <ul> <li>Reverted from eval2.c to eval.c due to FPE on Linux @@ -45,7 +44,7 @@ Changes: <li>more Makefile changes </ul> -<H2>1.1.2 beta March 14, 1995</H2> +<h2>1.1.2 beta March 14, 1995</h2> New: <ul> <li>implementation of SGI's blending extensions @@ -61,7 +60,7 @@ Changes: <li>faster transformation arithmetic </ul> -<H2>1.1.3 beta March 31, 1995</H2> +<h2>1.1.3 beta March 31, 1995</h2> New: <ul> <li>gluScaleImage() and gluBuild2DMipMaps() implemented @@ -76,7 +75,7 @@ Changes: <li>more bug fixes </ul> -<H2>1.1.4 beta April 20, 1995</H2> +<h2>1.1.4 beta April 20, 1995</h2> Bug fixes: <ul> <li>missing #define SEEK_SET in src-tk/image.c @@ -96,7 +95,7 @@ New features: <li>Implemented gluPartialDisk() </ul> -<H2>1.2 May 22, 1995</H2> +<h2>1.2 May 22, 1995</h2> Bug fixes: <ul> <li>IRIX 4.x makefile problem @@ -128,7 +127,7 @@ Bug fixes: <li>X/Mesa incorrect default clear color and drawing color <li>more robust X MIT-SHM support in X/Mesa <li>glTexImage( format=GL_LUMINANCE ) didn't work -<li>GL_LINE mode polygons with line width > 1.0 could cause a crash +<li>GL_LINE mode polygons with line width > 1.0 could cause a crash <li>numerous feedback bugs <li>glReadPixels() from depth buffer was wrong <li>error prone depth and stencil buffer allocation @@ -391,7 +390,7 @@ Bug fixes: <li>using 24-bit color on some X servers resulted in garbage rendering <li>32-bit per pixel mode for XFree86 now works <li>glRotate(a,0,0,0) gave unpredictable results -<li>GL_LINE_STRIP with > 480 vertices had occasional clipping problems +<li>GL_LINE_STRIP with > 480 vertices had occasional clipping problems <li>8-bit TrueColor GLXPixmap rendering incorrectly required a colormap <li>glMaterial() wasn't ignored when GL_COLOR_MATERIAL was enabled <li>glEnable(GL_COLOR_MATERIAL) followed by glColor() didn't work right @@ -505,7 +504,7 @@ Changes: <li>many 3Dfx driver updates <li>cygnus Makefiles now included <li>updated DOS driver -<li>made a few changes to dosmesa.c and wmesa.c (VB->Unclipped) +<li>made a few changes to dosmesa.c and wmesa.c (VB->Unclipped) <li>internally, colors now stored in GLubytes, not GLfixed <li>optimized changing of GL_SHININESS parameter </ul> @@ -594,7 +593,7 @@ New: <li>v0.22 of 3Dfx Glide driver <li>more X86 assembly language optimizations <li>faster blending for some modes -<li>XMesaSetFXmode() to switch between 3Dfx window and full-screen mode +<li>XMesaSetFXmode() to switch between 3Dfx window and full-screen mode <li>added preliminary thread support <li>added GLX_MESA_copy_sub_buffer extension <li>some clipping optimizations @@ -606,7 +605,7 @@ Bug fixes: <li>fixed clipping bug when using 3Dfx driver <li>fixed a problem when trying to use X fonts w/ 3Dfx driver <li>fixed a texture filter bug in 3Dfx/Glide driver -<li>fixed bug in 3Dfx/Glide driver involving depth mask & clearing +<li>fixed bug in 3Dfx/Glide driver involving depth mask & clearing <li>glLoadMatrix to set projection matrix confused the 3Dfx driver <li>non-identity texture matrices didn't work with linux-386 configs <li>glGenTextures() didn't reserve the returned texture IDs @@ -621,7 +620,7 @@ Changes: <ul> <li>replaced old Mesa/windows/ directory with Mesa/WIN32/ directory <li>converted a few old glaux/gltk demos to GLUT -<li>renamed directories: demos -> xdemos, gdemos -> demos +<li>renamed directories: demos -> xdemos, gdemos -> demos </ul> @@ -898,9 +897,9 @@ New: <li>demos/texenv.c demo <li>GL_EXT_texture_env_combine extension (by Holger Waechtler) <li>Xlib driver is now thread-safe (see xdemos/glthreads) -<ul> -Bug Fixes: </ul> +Bug Fixes: +<ul> <li>various GL conformance failures fixed since 3.2.1 </ul> Changes: @@ -936,9 +935,9 @@ Bug Fixes: <li>texture matrix changes weren't always detected (GLUT projtex demo) <li>fixed random color problem in vertex fog code <li>fixed Glide-related bug that let Quake get a 24-bit Z buffer -<ul> -Changes: </ul> +Changes: +<ul> <li>finished internal support for compressed textures for DRI </ul> @@ -1137,12 +1136,12 @@ Bug fixes: <li>glDraw/ReadPixels didn't catch all the errors that they should have <li>Fixed 24bpp rendering problem in Windows driver (Karl Schultz) <li>16-bit GLchan mode fixes (m_trans_tmp.h, s_triangle.c) -<li>Fixed 1-bit float->int conversion bug in glDrawPixels(GL_DEPTH_COMP) +<li>Fixed 1-bit float->int conversion bug in glDrawPixels(GL_DEPTH_COMP) <li>glColorMask as sometimes effecting glXSwapBuffers() <li>fixed a potential bug in XMesaGarbageCollect() <li>N threads rendering into one window didn't work reliably <li>glCopyPixels didn't work for deep color channels -<li>improved 8 -> 16bit/channel texture image conversion (Gerk Huisma) +<li>improved 8 -> 16bit/channel texture image conversion (Gerk Huisma) <li>glPopAttrib() didn't correctly restore user clip planes <li>user clip planes failed for some perspective projections (Chromium) </ul> @@ -1180,7 +1179,7 @@ Bug fixes: Changes: <ul> <li>lots of C++ (g++) code clean-ups -<li>lots of T&L updates for the Radeon DRI driver +<li>lots of T&L updates for the Radeon DRI driver </ul> Known bugs: <ul> @@ -1380,7 +1379,7 @@ Changes: New: <ul> <li>reorganized directory tree -<li>GL_ARB_vertex/fragment_program extensions (Michal Krol & Karl Rasche) +<li>GL_ARB_vertex/fragment_program extensions (Michal Krol & Karl Rasche) <li>GL_ATI_texture_env_combine3 extension (Ian Romanick) <li>GL_SGI_texture_color_table extension (Eric Plante) <li>GL_NV_fragment_program extension @@ -1443,7 +1442,7 @@ Bug fixes: </ul> -<h2><a name="6.0.1">6.0.1 April 2, 2004</h2> +<h2>6.0.1 April 2, 2004</h2> New: <ul> <li>upgraded glext.h to version 22 @@ -1456,7 +1455,7 @@ Bug fixes: <li>fixed build problems on OpenBSD <li>omit CVS directories from tarballs <li>glGetTexImage(GL_COLOR_INDEX) was broken -<li>fixed an infinite loop in t&l module +<li>fixed an infinite loop in t&l module <li>silenced some valgrind warnings about using unitialized memory <li>fixed some compilation/link glitches on IRIX (Mike Stephens) <li>glBindProgram wasn't getting compiled into display lists @@ -1481,7 +1480,7 @@ Bug fixes: </ul> -<h2><a name="6.1">6.1 August 18, 2004</h2> +<h2>6.1 August 18, 2004</h2> New: <ul> <li>Revamped Makefile system @@ -1514,7 +1513,7 @@ Bug fixes: <li>sampling an incomplete texture in a fragment program would segfault <li>glTexImage was missing a few error checks <li>fixed some minor glGetTexParameter glitches -<li>GL_INTENSITY was mistakenly accepted as a <format> to glTexImage +<li>GL_INTENSITY was mistakenly accepted as a <format> to glTexImage <li>fragment program writes to RC/HC register were broken <li>fixed a few glitches in GL_HP_occlusion_test extension <li>glBeginQueryARB and glEndQueryARB didn't work inside display lists @@ -1524,7 +1523,7 @@ Bug fixes: </ul> -<h2><a name="6.2">6.2 October 2, 2004</h2> +<h2>6.2 October 2, 2004</h2> New: <ul> <li>enabled GL_ARB_texture_rectangle (same as GL_NV_texture_rectangle) @@ -1551,7 +1550,7 @@ Bug fixes: </ul> -<h2><a name="6.2.1">6.2.1 December 9, 2004</h2> +<h2>6.2.1 December 9, 2004</h2> Bug fixes: <ul> <li>don't apply regular fog or color sum when using a fragment program @@ -1572,7 +1571,7 @@ Changes: </ul> -<h2><a name="6.3">6.3 July 20, 2005</h2> +<h2>6.3 July 20, 2005</h2> New: <ul> <li>GL_EXT_framebuffer_object extension @@ -1616,13 +1615,13 @@ Bug fixes: </ul> -<h2><a name="6.3.1">6.3.1</h2> +<h2>6.3.1</h2> <p> This was an intermediate release for X.org which wasn't otherwise released.) </p> -<h2><a name="6.3.2">6.3.2 August 19, 2005</h2> +<h2>6.3.2 August 19, 2005</h2> New: <ul> <li>The distribution now includes the DRI drivers and GLX code @@ -1646,10 +1645,10 @@ Bug fixes: </ul> -<B> +<b> NOTE: Changes for Mesa 6.4 and later are documented in the corresponding <a href="relnotes.html">release notes</a> file. -</B> +</b> </body> diff --git a/mesalib/docs/viewperf.html b/mesalib/docs/viewperf.html index af351bc42..6c3faf68c 100644 --- a/mesalib/docs/viewperf.html +++ b/mesalib/docs/viewperf.html @@ -1,10 +1,11 @@ -<HTML> - -<TITLE>Viewperf Issues</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Viewperf Issues</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> <h1>Viewperf Issues</h1> @@ -196,5 +197,5 @@ and with a semi-random color (between white and black) since GL_FOG is enabled. </p> -</BODY> -</HTML> +</body> +</html> diff --git a/mesalib/docs/vmware-guest.html b/mesalib/docs/vmware-guest.html index 4d95c1769..abb904c43 100644 --- a/mesalib/docs/vmware-guest.html +++ b/mesalib/docs/vmware-guest.html @@ -1,12 +1,12 @@ -<html> - -<title>VMware guest GL driver</title> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>VMware guest GL driver</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> <body> - <h1>VMware guest GL driver</h1> <p> @@ -186,13 +186,13 @@ OpenGL renderer string: Gallium 0.4 on SVGA3D; build: RELEASE; OpenGL version string: 2.1 Mesa 8.0 </pre> +<p> If you don't see this, try setting this environment variable: <pre> export LIBGL_DEBUG=verbose</pre> +<p> then rerun glxinfo and examine the output for error messages. </p> - - </body> </html> diff --git a/mesalib/docs/webmaster.html b/mesalib/docs/webmaster.html index 16f4dc803..f9de714fd 100644 --- a/mesalib/docs/webmaster.html +++ b/mesalib/docs/webmaster.html @@ -1,17 +1,18 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Mesa Introduction</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Mesa Introduction</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Webmaster</font></H1> +<h1>Webmaster</h1> <p> If you have problems, edits or additions for this website send them to Brian -(<em>b</em><em>r</em><em>i</em><em>a</em><em>n</em><em>.</em><em>e</em><em>.</em><em>p</em><em>a</em><em>u</em><em>l</em><em> </em><em>g</em><em>m</em><em>a</em><em>i</em><em>l</em><em>.</em><em>c</em><em>o</em><em>m</em>)</a>. +(<em>b</em><em>r</em><em>i</em><em>a</em><em>n</em><em>.</em><em>e</em><em>.</em><em>p</em><em>a</em><em>u</em><em>l</em><em> </em><em>g</em><em>m</em><em>a</em><em>i</em><em>l</em><em>.</em><em>c</em><em>o</em><em>m</em>). </p> <p> diff --git a/mesalib/docs/xlibdriver.html b/mesalib/docs/xlibdriver.html index db03bc353..57b23789e 100644 --- a/mesalib/docs/xlibdriver.html +++ b/mesalib/docs/xlibdriver.html @@ -1,12 +1,13 @@ -<HTML> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>Xlib Software Driver</title> + <link rel="stylesheet" type="text/css" href="mesa.css"> +</head> +<body> -<TITLE>Xlib Software Driver</TITLE> - -<link rel="stylesheet" type="text/css" href="mesa.css"></head> - -<BODY> - -<H1>Xlib Software Driver</H1> +<h1>Xlib Software Driver</h1> <p> Mesa's Xlib driver provides an emulation of the GLX interface so that @@ -31,7 +32,7 @@ The unique features of the Xlib driver follows. </p> -<H2>X Visual Selection</H2> +<h2>X Visual Selection</h2> <p> Mesa supports RGB(A) rendering into almost any X visual type and depth. </p> @@ -68,7 +69,7 @@ Here are some examples: </pre> -<H2>Double Buffering</H2> +<h2>Double Buffering</h2> <p> Mesa can use either an X Pixmap or XImage as the back color buffer when in double-buffer mode. @@ -95,7 +96,7 @@ for your application. </p> -<H2>Colormaps</H2> +<h2>Colormaps</h2> <p> When using Mesa directly or with GLX, it's up to the application writer to create a window with an appropriate colormap. The GLUT @@ -116,7 +117,7 @@ significant. </p> -<H2>Gamma Correction</H2> +<h2>Gamma Correction</h2> <p> To compensate for the nonlinear relationship between pixel values and displayed intensities, there is a gamma correction feature in @@ -169,7 +170,7 @@ the Gamma FAQ</a> </p> -<H2>Overlay Planes</H2> +<h2>Overlay Planes</h2> <p> Hardware overlay planes are supported by the Xlib driver. To determine if your X server has overlay support you can test for the @@ -180,7 +181,7 @@ SERVER_OVERLAY_VISUALS property: </pre> -<H2>HPCR Dithering</H2> +<h2>HPCR Dithering</h2> <p> If you set the <b>MESA_HPCR_CLEAR</b> environment variable then dithering will be used when clearing the color buffer. This is only applicable @@ -189,7 +190,7 @@ This incurs a small performance penalty. </p> -<H2>Extensions</H2> +<h2>Extensions</h2> <p> The following MESA-specific extensions are implemented in the Xlib driver. </p> @@ -248,7 +249,7 @@ just before an X window is destroyed. For example: This extension was added in Mesa 2.0. </p> -<H3>GLX_MESA_copy_sub_buffer</H3> +<h3>GLX_MESA_copy_sub_buffer</h3> <p> This extension adds the glXCopySubBufferMESA() function. It works like glXSwapBuffers() but only copies a sub-region of the window @@ -261,7 +262,7 @@ instead of the whole window. This extension was added in Mesa 2.6 </p> -<h2>Summary of X-related environment variables</H2> +<h2>Summary of X-related environment variables</h2> <pre> MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only) MESA_CI_VISUAL - specifies the X visual and depth for CI mode (X only) diff --git a/mesalib/scons/gallium.py b/mesalib/scons/gallium.py index 2fa80db88..ee91ca444 100644 --- a/mesalib/scons/gallium.py +++ b/mesalib/scons/gallium.py @@ -327,7 +327,8 @@ def generate(env): #'-march=pentium4', ] if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2') \ - and (platform != 'windows' or env['build'] == 'debug' or True): + and (platform != 'windows' or env['build'] == 'debug' or True) \ + and platform != 'haiku': # NOTE: We need to ensure stack is realigned given that we # produce shared objects, and have no control over the stack # alignment policy of the application. Therefore we need @@ -346,6 +347,14 @@ def generate(env): if platform in ['windows', 'darwin']: # Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216 ccflags += ['-fno-common'] + if platform in ['haiku']: + # Make optimizations compatible with Pentium or higher on Haiku + ccflags += [ + '-mstackrealign', # ensure stack is aligned + '-march=i586', # Haiku target is Pentium + '-mtune=i686', # use i686 where we can + '-mmmx' # use mmx math where we can + ] if env['machine'] == 'x86_64': ccflags += ['-m64'] if platform == 'darwin': diff --git a/mesalib/src/gallium/auxiliary/util/u_blit.c b/mesalib/src/gallium/auxiliary/util/u_blit.c index e5b97f720..9bd2ef52d 100644 --- a/mesalib/src/gallium/auxiliary/util/u_blit.c +++ b/mesalib/src/gallium/auxiliary/util/u_blit.c @@ -419,7 +419,7 @@ util_blit_pixels_writemask(struct blit_state *ctx, dstX0, dstY0, dst->u.tex.first_layer,/* dest */ src_tex, src_level, &src_box); - return; + return; } if (dst_format == dst->format) { @@ -444,6 +444,9 @@ util_blit_pixels_writemask(struct blit_state *ctx, src_tex->target != PIPE_TEXTURE_2D && src_tex->target != PIPE_TEXTURE_RECT)) { + /* Make a temporary texture which contains a copy of the source pixels. + * Then we'll sample from the temporary texture. + */ struct pipe_resource texTemp; struct pipe_resource *tex; struct pipe_sampler_view sv_templ; @@ -515,6 +518,7 @@ util_blit_pixels_writemask(struct blit_state *ctx, pipe_resource_reference(&tex, NULL); } else { + /* Directly sample from the source resource/texture */ u_sampler_view_default_template(&sv_templ, src_tex, src_format); sampler_view = pipe->create_sampler_view(pipe, src_tex, &sv_templ); diff --git a/mesalib/src/glsl/TODO b/mesalib/src/glsl/TODO index eb73fc2e8..bd077a856 100644 --- a/mesalib/src/glsl/TODO +++ b/mesalib/src/glsl/TODO @@ -6,9 +6,6 @@ constant index values. For others it is more complicated. Perhaps these cases should be silently converted to uniforms? -- Implement support for ir_binop_dot in opt_algebraic.cpp. Perform - transformations such as "dot(v, vec3(0.0, 1.0, 0.0))" -> v.y. - - Track source locations throughout the IR. There are currently several places where we cannot emit line numbers for errors (and currently emit 0:0) because we've "lost" the line number information. This is particularly diff --git a/mesalib/src/glsl/ir.cpp b/mesalib/src/glsl/ir.cpp index 69954998b..f81bfd1ab 100644 --- a/mesalib/src/glsl/ir.cpp +++ b/mesalib/src/glsl/ir.cpp @@ -46,6 +46,11 @@ bool ir_rvalue::is_negative_one() const return false; } +bool ir_rvalue::is_basis() const +{ + return false; +} + /** * Modify the swizzle make to move one component to another * @@ -1125,6 +1130,49 @@ ir_constant::is_negative_one() const return true; } +bool +ir_constant::is_basis() const +{ + if (!this->type->is_scalar() && !this->type->is_vector()) + return false; + + if (this->type->is_boolean()) + return false; + + unsigned ones = 0; + for (unsigned c = 0; c < this->type->vector_elements; c++) { + switch (this->type->base_type) { + case GLSL_TYPE_FLOAT: + if (this->value.f[c] == 1.0) + ones++; + else if (this->value.f[c] != 0.0) + return false; + break; + case GLSL_TYPE_INT: + if (this->value.i[c] == 1) + ones++; + else if (this->value.i[c] != 0) + return false; + break; + case GLSL_TYPE_UINT: + if (int(this->value.u[c]) == 1) + ones++; + else if (int(this->value.u[c]) != 0) + return false; + break; + default: + /* The only other base types are structures, arrays, samplers, and + * booleans. Samplers cannot be constants, and the others should + * have been filtered out above. + */ + assert(!"Should not get here."); + return false; + } + } + + return ones == 1; +} + ir_loop::ir_loop() { this->ir_type = ir_type_loop; diff --git a/mesalib/src/glsl/ir.h b/mesalib/src/glsl/ir.h index a3f9f0588..55535b2f5 100644 --- a/mesalib/src/glsl/ir.h +++ b/mesalib/src/glsl/ir.h @@ -201,7 +201,8 @@ public: * for vector and scalar types that have all elements set to the value * zero (or \c false for booleans). * - * \sa ir_constant::has_value, ir_rvalue::is_one, ir_rvalue::is_negative_one + * \sa ir_constant::has_value, ir_rvalue::is_one, ir_rvalue::is_negative_one, + * ir_constant::is_basis */ virtual bool is_zero() const; @@ -213,7 +214,8 @@ public: * for vector and scalar types that have all elements set to the value * one (or \c true for booleans). * - * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_negative_one + * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_negative_one, + * ir_constant::is_basis */ virtual bool is_one() const; @@ -223,12 +225,27 @@ public: * The base implementation of this function always returns \c false. The * \c ir_constant class over-rides this function to return \c true \b only * for vector and scalar types that have all elements set to the value - * negative one. For boolean times, the result is always \c false. + * negative one. For boolean types, the result is always \c false. * * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_one + * ir_constant::is_basis */ virtual bool is_negative_one() const; + /** + * Determine if an r-value is a basis vector + * + * The base implementation of this function always returns \c false. The + * \c ir_constant class over-rides this function to return \c true \b only + * for vector and scalar types that have one element set to the value one, + * and the other elements set to the value zero. For boolean types, the + * result is always \c false. + * + * \sa ir_constant::has_value, ir_rvalue::is_zero, ir_rvalue::is_one, + * is_constant::is_negative_one + */ + virtual bool is_basis() const; + /** * Return a generic value of error_type. @@ -1743,13 +1760,14 @@ public: * Determine whether a constant has the same value as another constant * * \sa ir_constant::is_zero, ir_constant::is_one, - * ir_constant::is_negative_one + * ir_constant::is_negative_one, ir_constant::is_basis */ bool has_value(const ir_constant *) const; virtual bool is_zero() const; virtual bool is_one() const; virtual bool is_negative_one() const; + virtual bool is_basis() const; /** * Value of the constant. diff --git a/mesalib/src/glsl/opt_algebraic.cpp b/mesalib/src/glsl/opt_algebraic.cpp index d39761260..75948db16 100644 --- a/mesalib/src/glsl/opt_algebraic.cpp +++ b/mesalib/src/glsl/opt_algebraic.cpp @@ -84,6 +84,12 @@ is_vec_one(ir_constant *ir) return (ir == NULL) ? false : ir->is_one(); } +static inline bool +is_vec_basis(ir_constant *ir) +{ + return (ir == NULL) ? false : ir->is_basis(); +} + static void update_type(ir_expression *ir) { @@ -309,6 +315,31 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir) } break; + case ir_binop_dot: + if (is_vec_zero(op_const[0]) || is_vec_zero(op_const[1])) { + this->progress = true; + return ir_constant::zero(mem_ctx, ir->type); + } + if (is_vec_basis(op_const[0])) { + this->progress = true; + unsigned component = 0; + for (unsigned c = 0; c < op_const[0]->type->vector_elements; c++) { + if (op_const[0]->value.f[c] == 1.0) + component = c; + } + return new(mem_ctx) ir_swizzle(ir->operands[1], component, 0, 0, 0, 1); + } + if (is_vec_basis(op_const[1])) { + this->progress = true; + unsigned component = 0; + for (unsigned c = 0; c < op_const[1]->type->vector_elements; c++) { + if (op_const[1]->value.f[c] == 1.0) + component = c; + } + return new(mem_ctx) ir_swizzle(ir->operands[0], component, 0, 0, 0, 1); + } + break; + case ir_binop_logic_and: /* FINISHME: Also simplify (a && a) to (a). */ if (is_vec_one(op_const[0])) { diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml index 945467939..045913806 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml @@ -8,7 +8,7 @@ <category name="GL_ARB_texture_storage" number="117"> - <enum name="GL_TEXTURE_IMMUTABLE_FORMAT" value="0x912F"/> + <enum name="TEXTURE_IMMUTABLE_FORMAT" value="0x912F"/> <function name="TexStorage1D" offset="assign"> <param name="target" type="GLenum"/> diff --git a/mesalib/src/mapi/glapi/gen/GL3x.xml b/mesalib/src/mapi/glapi/gen/GL3x.xml index 7f8254041..4834939f2 100644 --- a/mesalib/src/mapi/glapi/gen/GL3x.xml +++ b/mesalib/src/mapi/glapi/gen/GL3x.xml @@ -36,6 +36,8 @@ <enum name="MAX_PROGRAM_TEXEL_OFFSET" value="0x8905"> <size name="Get" mode="get"/> </enum> + <enum name="CLAMP_VERTEX_COLOR" value="0x891A"/> + <enum name="CLAMP_FRAGMENT_COLOR" value="0x891B"/> <enum name="CLAMP_READ_COLOR" value="0x891C"/> <enum name="FIXED_ONLY" value="0x891D"/> <enum name="MAX_VARYING_COMPONENTS" value="0x8B4B"/> @@ -478,8 +480,41 @@ <category name="3.1"> + <enum name="UNIFORM_BUFFER" value="0x8A11"/> + <enum name="UNIFORM_BUFFER_BINDING" value="0x8A28"/> + <enum name="UNIFORM_BUFFER_START" value="0x8A29"/> + <enum name="UNIFORM_BUFFER_SIZE" value="0x8A2A"/> + <enum name="MAX_VERTEX_UNIFORM_BLOCKS" value="0x8A2B"/> + <enum name="MAX_GEOMETRY_UNIFORM_BLOCKS" value="0x8A2C"/> + <enum name="MAX_FRAGMENT_UNIFORM_BLOCKS" value="0x8A2D"/> + <enum name="MAX_COMBINED_UNIFORM_BLOCKS" value="0x8A2E"/> + <enum name="MAX_UNIFORM_BUFFER_BINDINGS" value="0x8A2F"/> + <enum name="MAX_UNIFORM_BLOCK_SIZE" value="0x8A30"/> + <enum name="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS" value="0x8A31"/> + <enum name="MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS" value="0x8A32"/> + <enum name="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS" value="0x8A33"/> + <enum name="UNIFORM_BUFFER_OFFSET_ALIGNMENT" value="0x8A34"/> + <enum name="ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH" value="0x8A35"/> + <enum name="ACTIVE_UNIFORM_BLOCKS" value="0x8A36"/> + <enum name="UNIFORM_TYPE" value="0x8A37"/> + <enum name="UNIFORM_SIZE" value="0x8A38"/> + <enum name="UNIFORM_NAME_LENGTH" value="0x8A39"/> + <enum name="UNIFORM_BLOCK_INDEX" value="0x8A3A"/> + <enum name="UNIFORM_OFFSET" value="0x8A3B"/> + <enum name="UNIFORM_ARRAY_STRIDE" value="0x8A3C"/> + <enum name="UNIFORM_MATRIX_STRIDE" value="0x8A3D"/> + <enum name="UNIFORM_IS_ROW_MAJOR" value="0x8A3E"/> + <enum name="UNIFORM_BLOCK_BINDING" value="0x8A3F"/> + <enum name="UNIFORM_BLOCK_DATA_SIZE" value="0x8A40"/> + <enum name="UNIFORM_BLOCK_NAME_LENGTH" value="0x8A41"/> + <enum name="UNIFORM_BLOCK_ACTIVE_UNIFORMS" value="0x8A42"/> + <enum name="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES" value="0x8A43"/> + <enum name="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER" value="0x8A44"/> + <enum name="UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER" value="0x8A45"/> + <enum name="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER" value="0x8A46"/> <enum name="SAMPLER_2D_RECT" value="0x8B63"/> <enum name="SAMPLER_2D_RECT_SHADOW" value="0x8B64"/> + <enum name="FRAMEBUFFER_SRGB" value="0x8DB9"/> <enum name="SAMPLER_BUFFER" value="0x8DC2"/> <enum name="INT_SAMPLER_2D_RECT" value="0x8DCD"/> <enum name="INT_SAMPLER_BUFFER" value="0x8DD0"/> @@ -587,6 +622,11 @@ <category name="3.3"> <!-- There are other new functions and tokens defined by other extensions --> + <enum name="TEXTURE_SWIZZLE_R" value="0x8E42"/> + <enum name="TEXTURE_SWIZZLE_G" value="0x8E43"/> + <enum name="TEXTURE_SWIZZLE_B" value="0x8E44"/> + <enum name="TEXTURE_SWIZZLE_A" value="0x8E45"/> + <enum name="TEXTURE_SWIZZLE_RGBA" value="0x8E46"/> <function name="VertexAttribDivisor" offset="assign"> <param name="index" type="GLuint"/> diff --git a/mesalib/src/mapi/glapi/gen/gl_API.xml b/mesalib/src/mapi/glapi/gen/gl_API.xml index f06e60718..b3756a87c 100644 --- a/mesalib/src/mapi/glapi/gen/gl_API.xml +++ b/mesalib/src/mapi/glapi/gen/gl_API.xml @@ -7965,7 +7965,12 @@ <xi:include href="ARB_blend_func_extended.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> <!-- 79. GL_ARB_explicit_attrib_location --> -<!-- 80. GL_ARB_occlusion_query2 --> + +<category name="GL_ARB_occlusion_query2" number="80"> + <enum name="ANY_SAMPLES_PASSED" count="1" value="0x8C2F"> + <size name="GetQueryiv" mode="get"/> + </enum> +</category> <xi:include href="ARB_sampler_objects.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> @@ -8614,37 +8619,37 @@ </category> <category name="GL_SGIS_pixel_texture" number="15"> - <function name="PixelTexGenParameteriSGIS" offset="assign" static_dispatch="false"> + <function name="PixelTexGenParameteriSGIS"> <param name="pname" type="GLenum"/> <param name="param" type="GLint"/> <glx ignore="true"/> </function> - <function name="PixelTexGenParameterivSGIS" offset="assign" static_dispatch="false"> + <function name="PixelTexGenParameterivSGIS"> <param name="pname" type="GLenum"/> <param name="params" type="const GLint *"/> <glx ignore="true"/> </function> - <function name="PixelTexGenParameterfSGIS" offset="assign" static_dispatch="false"> + <function name="PixelTexGenParameterfSGIS"> <param name="pname" type="GLenum"/> <param name="param" type="GLfloat"/> <glx ignore="true"/> </function> - <function name="PixelTexGenParameterfvSGIS" offset="assign" static_dispatch="false"> + <function name="PixelTexGenParameterfvSGIS"> <param name="pname" type="GLenum"/> <param name="params" type="const GLfloat *"/> <glx ignore="true"/> </function> - <function name="GetPixelTexGenParameterivSGIS" offset="assign" static_dispatch="false"> + <function name="GetPixelTexGenParameterivSGIS"> <param name="pname" type="GLenum"/> <param name="params" type="GLint *" output="true" variable_param="pname"/> <glx ignore="true"/> </function> - <function name="GetPixelTexGenParameterfvSGIS" offset="assign" static_dispatch="false"> + <function name="GetPixelTexGenParameterfvSGIS"> <param name="pname" type="GLenum"/> <param name="params" type="GLfloat *" output="true" variable_param="pname"/> <glx ignore="true"/> @@ -8787,6 +8792,15 @@ <!-- Extension number 29 is not listed in the extension registry. --> <category name="GL_EXT_vertex_array" number="30"> + <!-- These enums are part of the extension only. --> + <enum name="VERTEX_ARRAY_COUNT_EXT" value="0x807D"/> + <enum name="NORMAL_ARRAY_COUNT_EXT" value="0x8080"/> + <enum name="COLOR_ARRAY_COUNT_EXT" value="0x8084"/> + <enum name="INDEX_ARRAY_COUNT_EXT" value="0x8087"/> + <enum name="TEXTURE_COORD_ARRAY_COUNT_EXT" value="0x808B"/> + <enum name="EDGE_FLAG_ARRAY_COUNT_EXT" value="0x808D"/> + + <function name="ArrayElementEXT" alias="ArrayElement"> <param name="i" type="GLint"/> </function> @@ -9381,6 +9395,9 @@ </category> <category name="GL_EXT_compiled_vertex_array" number="97"> + <enum name="ARRAY_ELEMENT_LOCK_FIRST_EXT" value="0x81A8"/> + <enum name="ARRAY_ELEMENT_LOCK_COUNT_EXT" value="0x81A9"/> + <function name="LockArraysEXT" offset="assign"> <param name="first" type="GLint"/> <param name="count" type="GLsizei"/> @@ -10003,7 +10020,7 @@ </category> <category name="GL_SGIX_pixel_texture" number="160"> - <function name="PixelTexGenSGIX" offset="assign" static_dispatch="false"> + <function name="PixelTexGenSGIX"> <param name="mode" type="GLenum"/> <glx rop="2059" ignore="true"/> </function> @@ -10522,11 +10539,11 @@ </category> <category name="GL_NV_vertex_array_range" number="190"> - <function name="FlushVertexArrayRangeNV" offset="assign"> + <function name="FlushVertexArrayRangeNV"> <glx ignore="true"/> </function> - <function name="VertexArrayRangeNV" offset="assign"> + <function name="VertexArrayRangeNV"> <param name="length" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> <glx ignore="true"/> @@ -10534,31 +10551,31 @@ </category> <category name="GL_NV_register_combiners" number="191"> - <function name="CombinerParameterfvNV" offset="assign"> + <function name="CombinerParameterfvNV"> <param name="pname" type="GLenum"/> <param name="params" type="const GLfloat *" variable_param="pname"/> <glx rop="4137" ignore="true"/> </function> - <function name="CombinerParameterfNV" offset="assign"> + <function name="CombinerParameterfNV"> <param name="pname" type="GLenum"/> <param name="param" type="GLfloat"/> <glx rop="4136" ignore="true"/> </function> - <function name="CombinerParameterivNV" offset="assign"> + <function name="CombinerParameterivNV"> <param name="pname" type="GLenum"/> <param name="params" type="const GLint *" variable_param="pname"/> <glx rop="4139" ignore="true"/> </function> - <function name="CombinerParameteriNV" offset="assign"> + <function name="CombinerParameteriNV"> <param name="pname" type="GLenum"/> <param name="param" type="GLint"/> <glx rop="4138" ignore="true"/> </function> - <function name="CombinerInputNV" offset="assign"> + <function name="CombinerInputNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="variable" type="GLenum"/> @@ -10568,7 +10585,7 @@ <glx rop="4140" ignore="true"/> </function> - <function name="CombinerOutputNV" offset="assign"> + <function name="CombinerOutputNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="abOutput" type="GLenum"/> @@ -10582,7 +10599,7 @@ <glx rop="4141" ignore="true"/> </function> - <function name="FinalCombinerInputNV" offset="assign"> + <function name="FinalCombinerInputNV"> <param name="variable" type="GLenum"/> <param name="input" type="GLenum"/> <param name="mapping" type="GLenum"/> @@ -10590,7 +10607,7 @@ <glx rop="4142" ignore="true"/> </function> - <function name="GetCombinerInputParameterfvNV" offset="assign"> + <function name="GetCombinerInputParameterfvNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="variable" type="GLenum"/> @@ -10599,7 +10616,7 @@ <glx vendorpriv="1270" ignore="true"/> </function> - <function name="GetCombinerInputParameterivNV" offset="assign"> + <function name="GetCombinerInputParameterivNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="variable" type="GLenum"/> @@ -10608,7 +10625,7 @@ <glx vendorpriv="1271" ignore="true"/> </function> - <function name="GetCombinerOutputParameterfvNV" offset="assign"> + <function name="GetCombinerOutputParameterfvNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="pname" type="GLenum"/> @@ -10616,7 +10633,7 @@ <glx vendorpriv="1272" ignore="true"/> </function> - <function name="GetCombinerOutputParameterivNV" offset="assign"> + <function name="GetCombinerOutputParameterivNV"> <param name="stage" type="GLenum"/> <param name="portion" type="GLenum"/> <param name="pname" type="GLenum"/> @@ -10624,14 +10641,14 @@ <glx vendorpriv="1273" ignore="true"/> </function> - <function name="GetFinalCombinerInputParameterfvNV" offset="assign"> + <function name="GetFinalCombinerInputParameterfvNV"> <param name="variable" type="GLenum"/> <param name="pname" type="GLenum"/> <param name="params" type="GLfloat *" output="true"/> <glx vendorpriv="1274" ignore="true"/> </function> - <function name="GetFinalCombinerInputParameterivNV" offset="assign"> + <function name="GetFinalCombinerInputParameterivNV"> <param name="variable" type="GLenum"/> <param name="pname" type="GLenum"/> <param name="params" type="GLint *" output="true"/> @@ -10654,7 +10671,7 @@ </category> <category name="GL_NV_texture_env_combine4" number="195"> - <enum name="COMBINE4" value="0x8503"/> + <enum name="COMBINE4_NV" value="0x8503"/> <enum name="SOURCE3_RGB_NV" count="1" value="0x8583"> <size name="TexEnvfv" mode="get"/> <size name="TexEnviv" mode="get"/> @@ -10988,43 +11005,43 @@ </category> <category name="GL_NV_fence" number="222"> - <function name="DeleteFencesNV" offset="assign" static_dispatch="false"> + <function name="DeleteFencesNV"> <param name="n" type="GLsizei"/> <param name="fences" type="const GLuint *"/> <glx ignore="true"/> </function> - <function name="GenFencesNV" offset="assign" static_dispatch="false"> + <function name="GenFencesNV"> <param name="n" type="GLsizei" counter="true"/> <param name="fences" type="GLuint *" output="true" count="n"/> <glx ignore="true"/> </function> - <function name="IsFenceNV" offset="assign" static_dispatch="false"> + <function name="IsFenceNV"> <param name="fence" type="GLuint"/> <return type="GLboolean"/> <glx ignore="true"/> </function> - <function name="TestFenceNV" offset="assign" static_dispatch="false"> + <function name="TestFenceNV"> <param name="fence" type="GLuint"/> <return type="GLboolean"/> <glx ignore="true"/> </function> - <function name="GetFenceivNV" offset="assign" static_dispatch="false"> + <function name="GetFenceivNV"> <param name="fence" type="GLuint"/> <param name="pname" type="GLenum"/> <param name="params" type="GLint *" output="true"/> <glx ignore="true"/> </function> - <function name="FinishFenceNV" offset="assign" static_dispatch="false"> + <function name="FinishFenceNV"> <param name="fence" type="GLuint"/> <glx ignore="true"/> </function> - <function name="SetFenceNV" offset="assign" static_dispatch="false"> + <function name="SetFenceNV"> <param name="fence" type="GLuint"/> <param name="condition" type="GLenum"/> <glx ignore="true"/> @@ -11776,6 +11793,117 @@ </category> <category name="GL_ATI_fragment_shader" number="245"> + <enum name="FRAGMENT_SHADER_ATI" value="0x8920"/> + <enum name="REG_0_ATI" value="0x8921"/> + <enum name="REG_1_ATI" value="0x8922"/> + <enum name="REG_2_ATI" value="0x8923"/> + <enum name="REG_3_ATI" value="0x8924"/> + <enum name="REG_4_ATI" value="0x8925"/> + <enum name="REG_5_ATI" value="0x8926"/> + + <!-- These values are not in the extension spec, but they are in glext.h --> + <enum name="REG_6_ATI" value="0x8927"/> + <enum name="REG_7_ATI" value="0x8928"/> + <enum name="REG_8_ATI" value="0x8929"/> + <enum name="REG_9_ATI" value="0x892A"/> + <enum name="REG_10_ATI" value="0x892B"/> + <enum name="REG_11_ATI" value="0x892C"/> + <enum name="REG_12_ATI" value="0x892D"/> + <enum name="REG_13_ATI" value="0x892E"/> + <enum name="REG_14_ATI" value="0x892F"/> + <enum name="REG_15_ATI" value="0x8930"/> + <enum name="REG_16_ATI" value="0x8931"/> + <enum name="REG_17_ATI" value="0x8932"/> + <enum name="REG_18_ATI" value="0x8933"/> + <enum name="REG_19_ATI" value="0x8934"/> + <enum name="REG_20_ATI" value="0x8935"/> + <enum name="REG_21_ATI" value="0x8936"/> + <enum name="REG_22_ATI" value="0x8937"/> + <enum name="REG_23_ATI" value="0x8938"/> + <enum name="REG_24_ATI" value="0x8939"/> + <enum name="REG_25_ATI" value="0x893A"/> + <enum name="REG_26_ATI" value="0x893B"/> + <enum name="REG_27_ATI" value="0x893C"/> + <enum name="REG_28_ATI" value="0x893D"/> + <enum name="REG_29_ATI" value="0x893E"/> + <enum name="REG_30_ATI" value="0x893F"/> + <enum name="REG_31_ATI" value="0x8940"/> + + <enum name="CON_0_ATI" value="0x8941"/> + <enum name="CON_1_ATI" value="0x8942"/> + <enum name="CON_2_ATI" value="0x8943"/> + <enum name="CON_3_ATI" value="0x8944"/> + <enum name="CON_4_ATI" value="0x8945"/> + <enum name="CON_5_ATI" value="0x8946"/> + <enum name="CON_6_ATI" value="0x8947"/> + <enum name="CON_7_ATI" value="0x8948"/> + + <!-- These values are not in the extension spec, but they are in glext.h --> + <enum name="CON_8_ATI" value="0x8949"/> + <enum name="CON_9_ATI" value="0x894A"/> + <enum name="CON_10_ATI" value="0x894B"/> + <enum name="CON_11_ATI" value="0x894C"/> + <enum name="CON_12_ATI" value="0x894D"/> + <enum name="CON_13_ATI" value="0x894E"/> + <enum name="CON_14_ATI" value="0x894F"/> + <enum name="CON_15_ATI" value="0x8950"/> + <enum name="CON_16_ATI" value="0x8951"/> + <enum name="CON_17_ATI" value="0x8952"/> + <enum name="CON_18_ATI" value="0x8953"/> + <enum name="CON_19_ATI" value="0x8954"/> + <enum name="CON_20_ATI" value="0x8955"/> + <enum name="CON_21_ATI" value="0x8956"/> + <enum name="CON_22_ATI" value="0x8957"/> + <enum name="CON_23_ATI" value="0x8958"/> + <enum name="CON_24_ATI" value="0x8959"/> + <enum name="CON_25_ATI" value="0x895A"/> + <enum name="CON_26_ATI" value="0x895B"/> + <enum name="CON_27_ATI" value="0x895C"/> + <enum name="CON_28_ATI" value="0x895D"/> + <enum name="CON_29_ATI" value="0x895E"/> + <enum name="CON_30_ATI" value="0x895F"/> + <enum name="CON_31_ATI" value="0x8960"/> + + <enum name="MOV_ATI" value="0x8961"/> + <enum name="ADD_ATI" value="0x8963"/> + <enum name="MUL_ATI" value="0x8964"/> + <enum name="SUB_ATI" value="0x8965"/> + <enum name="DOT3_ATI" value="0x8966"/> + <enum name="DOT4_ATI" value="0x8967"/> + <enum name="MAD_ATI" value="0x8968"/> + <enum name="LERP_ATI" value="0x8969"/> + <enum name="CND_ATI" value="0x896A"/> + <enum name="CND0_ATI" value="0x896B"/> + <enum name="DOT2_ADD_ATI" value="0x896C"/> + <enum name="SECONDARY_INTERPOLATOR_ATI" value="0x896D"/> + + <!-- + These values are not in the extension spec, but they are in glext.h. + However, the specification does say that they are deprecated. + --> + <enum name="NUM_FRAGMENT_REGISTERS_ATI" value="0x896E"/> + <enum name="NUM_FRAGMENT_CONSTANTS_ATI" value="0x896F"/> + <enum name="NUM_PASSES_ATI" value="0x8970"/> + <enum name="NUM_INSTRUCTIONS_PER_PASS_ATI" value="0x8971"/> + <enum name="NUM_INSTRUCTIONS_TOTAL_ATI" value="0x8972"/> + <enum name="NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI" value="0x8973"/> + <enum name="NUM_LOOPBACK_COMPONENTS_ATI" value="0x8974"/> + <enum name="COLOR_ALPHA_PAIRING_ATI" value="0x8975"/> + + <enum name="SWIZZLE_STR_ATI" value="0x8976"/> + <enum name="SWIZZLE_STQ_ATI" value="0x8977"/> + <enum name="SWIZZLE_STR_DR_ATI" value="0x8978"/> + <enum name="SWIZZLE_STQ_DQ_ATI" value="0x8979"/> + + <!-- These values are not in the extension spec, but they are in glext.h --> + <enum name="SWIZZLE_STRQ_ATI" value="0x897A"/> + <enum name="SWIZZLE_STRQ_DQ_ATI" value="0x897B"/> + + <!-- + The _BIT enums are not added because they just clutter enums.c with + redudndant garbage. There are a lot of enums with the value 0x00000001. + --> + <function name="GenFragmentShadersATI" offset="assign"> <return type="GLuint"/> <param name="range" type="GLuint"/> @@ -12030,6 +12158,13 @@ </category> <category name="GL_NV_fragment_program" number="282"> + <enum name="FRAGMENT_PROGRAM_NV" value="0x8870"/> + <enum name="MAX_TEXTURE_COORDS_NV" value="0x8871"/> + <enum name="MAX_TEXTURE_IMAGE_UNITS_NV" value="0x8872"/> + <enum name="FRAGMENT_PROGRAM_BINDING_NV" value="0x8873"/> + <enum name="MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV" value="0x8868"/> + <enum name="PROGRAM_ERROR_STRING_NV" value="0x8874"/> + <function name="ProgramNamedParameter4fNV" offset="assign" vectorequiv="ProgramNamedParameter4fvNV"> <param name="id" type="GLuint"/> <param name="len" type="GLsizei" counter="true"/> @@ -12236,8 +12371,19 @@ </function> </category> +<category name="GL_EXT_packed_float" number="328"> + <enum name="R11F_G11F_B10F_EXT" value="0x8C3A"/> + <enum name="UNSIGNED_INT_10F_11F_11F_REV" value="0x8C3B"/> + <enum name="RGBA_SIGNED_COMPONENTS_EXT" value="0x8C3C"/> +</category> + <xi:include href="EXT_texture_array.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> +<category name="GL_EXT_framebuffer_sRGB" number="337"> + <enum name="FRAMEBUFFER_SRGB_EXT" value="0x8DB9"/> + <enum name="FRAMEBUFFER_SRGB_CAPABLE_EXT" value="0x8DBA"/> +</category> + <category name="GL_APPLE_texture_range" number="367"> <enum name="TEXTURE_STORAGE_HINT_APPLE" count="1" value="0x85BC"> <size name="TexParameteriv" mode="get"/> @@ -12264,12 +12410,12 @@ <enum name="TEXTURE_RANGE_POINTER_APPLE" count="1" value="0x85B8"> <size name="GetTexParameterPointervAPPLE" mode="get"/> </enum> - <function name="TextureRangeAPPLE" offset="assign" static_dispatch="false"> + <function name="TextureRangeAPPLE"> <param name="target" type="GLenum"/> <param name="length" type="GLsizei"/> <param name="pointer" type="GLvoid *"/> </function> - <function name="GetTexParameterPointervAPPLE" offset="assign" static_dispatch="false"> + <function name="GetTexParameterPointervAPPLE"> <param name="target" type="GLenum"/> <param name="pname" type="GLenum"/> <param name="params" type="GLvoid **"/> @@ -12279,6 +12425,12 @@ <xi:include href="EXT_separate_shader_objects.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> +<category name="GL_EXT_texture_sRGB_decode" number="402"> + <enum name="TEXTURE_SRGB_DECODE_EXT" value="0x8A48"/> + <enum name="DECODE_EXT" value="0x8A49"/> + <enum name="SKIP_DECODE_EXT" value="0x8A4A"/> +</category> + <!-- Unnumbered extensions sorted by name. --> <category name="GL_ATI_blend_equation_separate"> diff --git a/mesalib/src/mesa/Makefile b/mesalib/src/mesa/Makefile index 845b524e6..b0b461fdd 100644 --- a/mesalib/src/mesa/Makefile +++ b/mesalib/src/mesa/Makefile @@ -135,7 +135,7 @@ asm_subdirs: ###################################################################### # Dependency generation -depend: $(ALL_FILES) +depend: $(ALL_FILES) main/git_sha1.h @ echo "running $(MKDEP)" @ touch depend @$(MKDEP) $(MKDEP_OPTIONS) $(MESA_CPPFLAGS) \ diff --git a/mesalib/src/mesa/drivers/common/meta.c b/mesalib/src/mesa/drivers/common/meta.c index 8d7e90126..be7141a58 100644 --- a/mesalib/src/mesa/drivers/common/meta.c +++ b/mesalib/src/mesa/drivers/common/meta.c @@ -319,6 +319,10 @@ struct gl_meta_state struct drawtex_state DrawTex; /**< For _mesa_meta_DrawTex() */ }; +static void meta_glsl_blit_cleanup(struct gl_context *ctx, struct blit_state *blit); +static void cleanup_temp_texture(struct gl_context *ctx, struct temp_texture *tex); +static void meta_glsl_clear_cleanup(struct gl_context *ctx, struct clear_state *clear); + static GLuint compile_shader_with_debug(struct gl_context *ctx, GLenum target, const GLcharARB *source) { @@ -335,12 +339,16 @@ compile_shader_with_debug(struct gl_context *ctx, GLenum target, const GLcharARB return shader; _mesa_GetShaderiv(shader, GL_INFO_LOG_LENGTH, &size); - if (size == 0) + if (size == 0) { + _mesa_DeleteObjectARB(shader); return 0; + } info = malloc(size); - if (!info) + if (!info) { + _mesa_DeleteObjectARB(shader); return 0; + } _mesa_GetProgramInfoLog(shader, size, NULL, info); _mesa_problem(ctx, @@ -349,6 +357,7 @@ compile_shader_with_debug(struct gl_context *ctx, GLenum target, const GLcharARB info, source); free(info); + _mesa_DeleteObjectARB(shader); return 0; } @@ -401,10 +410,15 @@ _mesa_meta_init(struct gl_context *ctx) void _mesa_meta_free(struct gl_context *ctx) { - /* Note: Any textures, VBOs, etc, that we allocate should get - * freed by the normal context destruction code. But this would be - * the place to free other meta data someday. - */ + GET_CURRENT_CONTEXT(old_context); + _mesa_make_current(ctx, NULL, NULL); + meta_glsl_blit_cleanup(ctx, &ctx->Meta->Blit); + meta_glsl_clear_cleanup(ctx, &ctx->Meta->Clear); + cleanup_temp_texture(ctx, &ctx->Meta->TempTex); + if (old_context) + _mesa_make_current(old_context, old_context->WinSysDrawBuffer, old_context->WinSysReadBuffer); + else + _mesa_make_current(NULL, NULL, NULL); free(ctx->Meta); ctx->Meta = NULL; } @@ -1068,6 +1082,15 @@ init_temp_texture(struct gl_context *ctx, struct temp_texture *tex) _mesa_GenTextures(1, &tex->TexObj); } +static void +cleanup_temp_texture(struct gl_context *ctx, struct temp_texture *tex) +{ + if (!tex->TexObj) + return; + _mesa_DeleteTextures(1, &tex->TexObj); + tex->TexObj = 0; +} + /** * Return pointer to temp_texture info for non-bitmap ops. @@ -1604,6 +1627,21 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx, } } +static void +meta_glsl_blit_cleanup(struct gl_context *ctx, struct blit_state *blit) +{ + if (blit->ArrayObj) { + _mesa_DeleteVertexArraysAPPLE(1, &blit->ArrayObj); + blit->ArrayObj = 0; + _mesa_DeleteBuffersARB(1, &blit->VBO); + blit->VBO = 0; + } + if (blit->DepthFP) { + _mesa_DeletePrograms(1, &blit->DepthFP); + blit->DepthFP = 0; + } +} + /** * Meta implementation of ctx->Driver.Clear() in terms of polygon rendering. @@ -1786,7 +1824,9 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear) clear->ShaderProg = _mesa_CreateProgramObjectARB(); _mesa_AttachShader(clear->ShaderProg, fs); + _mesa_DeleteObjectARB(fs); _mesa_AttachShader(clear->ShaderProg, vs); + _mesa_DeleteObjectARB(vs); _mesa_BindAttribLocationARB(clear->ShaderProg, 0, "position"); _mesa_LinkProgramARB(clear->ShaderProg); @@ -1799,7 +1839,9 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear) clear->IntegerShaderProg = _mesa_CreateProgramObjectARB(); _mesa_AttachShader(clear->IntegerShaderProg, fs); + _mesa_DeleteObjectARB(fs); _mesa_AttachShader(clear->IntegerShaderProg, vs); + _mesa_DeleteObjectARB(vs); _mesa_BindAttribLocationARB(clear->IntegerShaderProg, 0, "position"); /* Note that user-defined out attributes get automatically assigned @@ -1814,6 +1856,24 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear) } } +static void +meta_glsl_clear_cleanup(struct gl_context *ctx, struct clear_state *clear) +{ + if (clear->ArrayObj == 0) + return; + _mesa_DeleteVertexArraysAPPLE(1, &clear->ArrayObj); + clear->ArrayObj = 0; + _mesa_DeleteBuffersARB(1, &clear->VBO); + clear->VBO = 0; + _mesa_DeleteObjectARB(clear->ShaderProg); + clear->ShaderProg = 0; + + if (clear->IntegerShaderProg) { + _mesa_DeleteObjectARB(clear->IntegerShaderProg); + clear->IntegerShaderProg = 0; + } +} + /** * Meta implementation of ctx->Driver.Clear() in terms of polygon rendering. */ diff --git a/mesalib/src/mesa/drivers/windows/gdi/mesa.def b/mesalib/src/mesa/drivers/windows/gdi/mesa.def index d5c98801d..fec7bbac0 100644 --- a/mesalib/src/mesa/drivers/windows/gdi/mesa.def +++ b/mesalib/src/mesa/drivers/windows/gdi/mesa.def @@ -556,21 +556,6 @@ EXPORTS glFogCoorddvEXT glFogCoordPointerEXT glBlendFuncSeparateEXT - glFlushVertexArrayRangeNV - glVertexArrayRangeNV - glCombinerParameterfvNV - glCombinerParameterfNV - glCombinerParameterivNV - glCombinerParameteriNV - glCombinerInputNV - glCombinerOutputNV - glFinalCombinerInputNV - glGetCombinerInputParameterfvNV - glGetCombinerInputParameterivNV - glGetCombinerOutputParameterfvNV - glGetCombinerOutputParameterivNV - glGetFinalCombinerInputParameterfvNV - glGetFinalCombinerInputParameterivNV glResizeBuffersMESA glWindowPos2dMESA glWindowPos2dvMESA diff --git a/mesalib/src/mesa/main/shaderobj.c b/mesalib/src/mesa/main/shaderobj.c index 7eb6f0bda..16800ae5e 100644 --- a/mesalib/src/mesa/main/shaderobj.c +++ b/mesalib/src/mesa/main/shaderobj.c @@ -278,7 +278,9 @@ _mesa_clear_shader_program_data(struct gl_context *ctx, struct gl_shader_program *shProg) { if (shProg->UniformStorage) { - _mesa_uniform_detach_all_driver_storage(shProg->UniformStorage); + unsigned i; + for (i = 0; i < shProg->NumUserUniformStorage; ++i) + _mesa_uniform_detach_all_driver_storage(&shProg->UniformStorage[i]); ralloc_free(shProg->UniformStorage); shProg->NumUserUniformStorage = 0; shProg->UniformStorage = NULL; diff --git a/mesalib/src/mesa/program/hash_table.c b/mesalib/src/mesa/program/hash_table.c index dc8563a33..7dabadc50 100644 --- a/mesalib/src/mesa/program/hash_table.c +++ b/mesalib/src/mesa/program/hash_table.c @@ -149,7 +149,7 @@ hash_table_insert(struct hash_table *ht, void *data, const void *key) insert_at_head(& ht->buckets[bucket], & node->link); } -void +bool hash_table_replace(struct hash_table *ht, void *data, const void *key) { const unsigned hash_value = (*ht->hash)(key); @@ -162,7 +162,7 @@ hash_table_replace(struct hash_table *ht, void *data, const void *key) if ((*ht->compare)(hn->key, key) == 0) { hn->data = data; - return; + return true; } } @@ -172,6 +172,7 @@ hash_table_replace(struct hash_table *ht, void *data, const void *key) hn->key = key; insert_at_head(& ht->buckets[bucket], & hn->link); + return false; } void diff --git a/mesalib/src/mesa/program/hash_table.h b/mesalib/src/mesa/program/hash_table.h index e1c234ea4..b814497a6 100644 --- a/mesalib/src/mesa/program/hash_table.h +++ b/mesalib/src/mesa/program/hash_table.h @@ -32,6 +32,7 @@ #define HASH_TABLE_H #include <string.h> +#include <stdbool.h> #include <stdlib.h> #include <stdint.h> #include <limits.h> @@ -115,6 +116,10 @@ extern void hash_table_insert(struct hash_table *ht, void *data, /** * Add an element to a hash table with replacement * + * \return + * 1 if it did replace the the value (in which case the old key is kept), 0 if + * it did not replace the value (in which case the new key is kept). + * * \warning * If \c key is already in the hash table, \c data will \b replace the most * recently inserted \c data (see the warning in \c hash_table_insert) for @@ -122,7 +127,7 @@ extern void hash_table_insert(struct hash_table *ht, void *data, * * \sa hash_table_insert */ -extern void hash_table_replace(struct hash_table *ht, void *data, +extern bool hash_table_replace(struct hash_table *ht, void *data, const void *key); /** @@ -220,6 +225,7 @@ public: */ void clear() { + hash_table_call_foreach(this->ht, delete_key, NULL); hash_table_clear(this->ht); } @@ -259,9 +265,12 @@ public: * because UINT_MAX+1 = 0. */ assert(value != UINT_MAX); - hash_table_replace(this->ht, - (void *) (intptr_t) (value + 1), - strdup(key)); + char *dup_key = strdup(key); + bool result = hash_table_replace(this->ht, + (void *) (intptr_t) (value + 1), + dup_key); + if (result) + free(dup_key); } private: diff --git a/mesalib/src/mesa/sources.mak b/mesalib/src/mesa/sources.mak index 608aa79ab..16b1c39c0 100644 --- a/mesalib/src/mesa/sources.mak +++ b/mesalib/src/mesa/sources.mak @@ -198,6 +198,7 @@ VBO_FILES = \ STATETRACKER_FILES = \ $(SRCDIR)/state_tracker/st_atom.c \ + $(SRCDIR)/state_tracker/st_atom_array.c \ $(SRCDIR)/state_tracker/st_atom_blend.c \ $(SRCDIR)/state_tracker/st_atom_clip.c \ $(SRCDIR)/state_tracker/st_atom_constbuf.c \ diff --git a/mesalib/src/mesa/state_tracker/st_atom.c b/mesalib/src/mesa/state_tracker/st_atom.c index d9cd4aab4..e6fc114f1 100644 --- a/mesalib/src/mesa/state_tracker/st_atom.c +++ b/mesalib/src/mesa/state_tracker/st_atom.c @@ -63,7 +63,10 @@ static const struct st_tracked_state *atoms[] = &st_update_vs_constants, &st_update_gs_constants, &st_update_fs_constants, - &st_update_pixel_transfer + &st_update_pixel_transfer, + + /* this must be done after the vertex program update */ + &st_update_array }; @@ -122,6 +125,22 @@ static void check_program_state( struct st_context *st ) st->dirty.st |= ST_NEW_GEOMETRY_PROGRAM; } +static void check_attrib_edgeflag(struct st_context *st) +{ + const struct gl_client_array **arrays = st->ctx->Array._DrawArrays; + GLboolean vertDataEdgeFlags; + + if (!arrays) + return; + + vertDataEdgeFlags = arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj && + arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj->Name; + if (vertDataEdgeFlags != st->vertdata_edgeflags) { + st->vertdata_edgeflags = vertDataEdgeFlags; + st->dirty.st |= ST_NEW_EDGEFLAGS_DATA; + } +} + /*********************************************************************** * Update all derived state: @@ -132,6 +151,12 @@ void st_validate_state( struct st_context *st ) struct st_state_flags *state = &st->dirty; GLuint i; + /* Get Mesa driver state. */ + st->dirty.st |= st->ctx->NewDriverState; + st->ctx->NewDriverState = 0; + + check_attrib_edgeflag(st); + /* The bitmap cache is immune to pixel unpack changes. * Note that GLUT makes several calls to glPixelStore for each * bitmap char it draws so this is an important check. diff --git a/mesalib/src/mesa/state_tracker/st_atom.h b/mesalib/src/mesa/state_tracker/st_atom.h index 930a08444..703bc2ab3 100644 --- a/mesalib/src/mesa/state_tracker/st_atom.h +++ b/mesalib/src/mesa/state_tracker/st_atom.h @@ -46,6 +46,7 @@ void st_destroy_atoms( struct st_context *st ); void st_validate_state( struct st_context *st ); +extern const struct st_tracked_state st_update_array; extern const struct st_tracked_state st_update_framebuffer; extern const struct st_tracked_state st_update_clip; extern const struct st_tracked_state st_update_depth_stencil_alpha; @@ -70,4 +71,8 @@ extern const struct st_tracked_state st_update_pixel_transfer; GLuint st_compare_func_to_pipe(GLenum func); +enum pipe_format +st_pipe_vertex_format(GLenum type, GLuint size, GLenum format, + GLboolean normalized, GLboolean integer); + #endif diff --git a/mesalib/src/mesa/state_tracker/st_atom_array.c b/mesalib/src/mesa/state_tracker/st_atom_array.c new file mode 100644 index 000000000..d60b0d7a9 --- /dev/null +++ b/mesalib/src/mesa/state_tracker/st_atom_array.c @@ -0,0 +1,588 @@ +/************************************************************************** + * + * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. + * Copyright 2012 Marek Olšák <maraeo@gmail.com> + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sub license, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. + * IN NO EVENT SHALL AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + **************************************************************************/ + +/* + * This converts the VBO's vertex attribute/array information into + * Gallium vertex state and binds it. + * + * Authors: + * Keith Whitwell <keith@tungstengraphics.com> + * Marek Olšák <maraeo@gmail.com> + */ + +#include "st_context.h" +#include "st_atom.h" +#include "st_cb_bufferobjects.h" +#include "st_draw.h" +#include "st_program.h" + +#include "cso_cache/cso_context.h" +#include "util/u_math.h" + +#include "main/bufferobj.h" +#include "main/image.h" + + +static GLuint double_types[4] = { + PIPE_FORMAT_R64_FLOAT, + PIPE_FORMAT_R64G64_FLOAT, + PIPE_FORMAT_R64G64B64_FLOAT, + PIPE_FORMAT_R64G64B64A64_FLOAT +}; + +static GLuint float_types[4] = { + PIPE_FORMAT_R32_FLOAT, + PIPE_FORMAT_R32G32_FLOAT, + PIPE_FORMAT_R32G32B32_FLOAT, + PIPE_FORMAT_R32G32B32A32_FLOAT +}; + +static GLuint half_float_types[4] = { + PIPE_FORMAT_R16_FLOAT, + PIPE_FORMAT_R16G16_FLOAT, + PIPE_FORMAT_R16G16B16_FLOAT, + PIPE_FORMAT_R16G16B16A16_FLOAT +}; + +static GLuint uint_types_norm[4] = { + PIPE_FORMAT_R32_UNORM, + PIPE_FORMAT_R32G32_UNORM, + PIPE_FORMAT_R32G32B32_UNORM, + PIPE_FORMAT_R32G32B32A32_UNORM +}; + +static GLuint uint_types_scale[4] = { + PIPE_FORMAT_R32_USCALED, + PIPE_FORMAT_R32G32_USCALED, + PIPE_FORMAT_R32G32B32_USCALED, + PIPE_FORMAT_R32G32B32A32_USCALED +}; + +static GLuint uint_types_int[4] = { + PIPE_FORMAT_R32_UINT, + PIPE_FORMAT_R32G32_UINT, + PIPE_FORMAT_R32G32B32_UINT, + PIPE_FORMAT_R32G32B32A32_UINT +}; + +static GLuint int_types_norm[4] = { + PIPE_FORMAT_R32_SNORM, + PIPE_FORMAT_R32G32_SNORM, + PIPE_FORMAT_R32G32B32_SNORM, + PIPE_FORMAT_R32G32B32A32_SNORM +}; + +static GLuint int_types_scale[4] = { + PIPE_FORMAT_R32_SSCALED, + PIPE_FORMAT_R32G32_SSCALED, + PIPE_FORMAT_R32G32B32_SSCALED, + PIPE_FORMAT_R32G32B32A32_SSCALED +}; + +static GLuint int_types_int[4] = { + PIPE_FORMAT_R32_SINT, + PIPE_FORMAT_R32G32_SINT, + PIPE_FORMAT_R32G32B32_SINT, + PIPE_FORMAT_R32G32B32A32_SINT +}; + +static GLuint ushort_types_norm[4] = { + PIPE_FORMAT_R16_UNORM, + PIPE_FORMAT_R16G16_UNORM, + PIPE_FORMAT_R16G16B16_UNORM, + PIPE_FORMAT_R16G16B16A16_UNORM +}; + +static GLuint ushort_types_scale[4] = { + PIPE_FORMAT_R16_USCALED, + PIPE_FORMAT_R16G16_USCALED, + PIPE_FORMAT_R16G16B16_USCALED, + PIPE_FORMAT_R16G16B16A16_USCALED +}; + +static GLuint ushort_types_int[4] = { + PIPE_FORMAT_R16_UINT, + PIPE_FORMAT_R16G16_UINT, + PIPE_FORMAT_R16G16B16_UINT, + PIPE_FORMAT_R16G16B16A16_UINT +}; + +static GLuint short_types_norm[4] = { + PIPE_FORMAT_R16_SNORM, + PIPE_FORMAT_R16G16_SNORM, + PIPE_FORMAT_R16G16B16_SNORM, + PIPE_FORMAT_R16G16B16A16_SNORM +}; + +static GLuint short_types_scale[4] = { + PIPE_FORMAT_R16_SSCALED, + PIPE_FORMAT_R16G16_SSCALED, + PIPE_FORMAT_R16G16B16_SSCALED, + PIPE_FORMAT_R16G16B16A16_SSCALED +}; + +static GLuint short_types_int[4] = { + PIPE_FORMAT_R16_SINT, + PIPE_FORMAT_R16G16_SINT, + PIPE_FORMAT_R16G16B16_SINT, + PIPE_FORMAT_R16G16B16A16_SINT +}; + +static GLuint ubyte_types_norm[4] = { + PIPE_FORMAT_R8_UNORM, + PIPE_FORMAT_R8G8_UNORM, + PIPE_FORMAT_R8G8B8_UNORM, + PIPE_FORMAT_R8G8B8A8_UNORM +}; + +static GLuint ubyte_types_scale[4] = { + PIPE_FORMAT_R8_USCALED, + PIPE_FORMAT_R8G8_USCALED, + PIPE_FORMAT_R8G8B8_USCALED, + PIPE_FORMAT_R8G8B8A8_USCALED +}; + +static GLuint ubyte_types_int[4] = { + PIPE_FORMAT_R8_UINT, + PIPE_FORMAT_R8G8_UINT, + PIPE_FORMAT_R8G8B8_UINT, + PIPE_FORMAT_R8G8B8A8_UINT +}; + +static GLuint byte_types_norm[4] = { + PIPE_FORMAT_R8_SNORM, + PIPE_FORMAT_R8G8_SNORM, + PIPE_FORMAT_R8G8B8_SNORM, + PIPE_FORMAT_R8G8B8A8_SNORM +}; + +static GLuint byte_types_scale[4] = { + PIPE_FORMAT_R8_SSCALED, + PIPE_FORMAT_R8G8_SSCALED, + PIPE_FORMAT_R8G8B8_SSCALED, + PIPE_FORMAT_R8G8B8A8_SSCALED +}; + +static GLuint byte_types_int[4] = { + PIPE_FORMAT_R8_SINT, + PIPE_FORMAT_R8G8_SINT, + PIPE_FORMAT_R8G8B8_SINT, + PIPE_FORMAT_R8G8B8A8_SINT +}; + +static GLuint fixed_types[4] = { + PIPE_FORMAT_R32_FIXED, + PIPE_FORMAT_R32G32_FIXED, + PIPE_FORMAT_R32G32B32_FIXED, + PIPE_FORMAT_R32G32B32A32_FIXED +}; + + +/** + * Return a PIPE_FORMAT_x for the given GL datatype and size. + */ +enum pipe_format +st_pipe_vertex_format(GLenum type, GLuint size, GLenum format, + GLboolean normalized, GLboolean integer) +{ + assert((type >= GL_BYTE && type <= GL_DOUBLE) || + type == GL_FIXED || type == GL_HALF_FLOAT || + type == GL_INT_2_10_10_10_REV || + type == GL_UNSIGNED_INT_2_10_10_10_REV); + assert(size >= 1); + assert(size <= 4); + assert(format == GL_RGBA || format == GL_BGRA); + + if (type == GL_INT_2_10_10_10_REV || + type == GL_UNSIGNED_INT_2_10_10_10_REV) { + assert(size == 4); + assert(!integer); + + if (format == GL_BGRA) { + if (type == GL_INT_2_10_10_10_REV) { + if (normalized) + return PIPE_FORMAT_B10G10R10A2_SNORM; + else + return PIPE_FORMAT_B10G10R10A2_SSCALED; + } else { + if (normalized) + return PIPE_FORMAT_B10G10R10A2_UNORM; + else + return PIPE_FORMAT_B10G10R10A2_USCALED; + } + } else { + if (type == GL_INT_2_10_10_10_REV) { + if (normalized) + return PIPE_FORMAT_R10G10B10A2_SNORM; + else + return PIPE_FORMAT_R10G10B10A2_SSCALED; + } else { + if (normalized) + return PIPE_FORMAT_R10G10B10A2_UNORM; + else + return PIPE_FORMAT_R10G10B10A2_USCALED; + } + } + } + + if (format == GL_BGRA) { + /* this is an odd-ball case */ + assert(type == GL_UNSIGNED_BYTE); + assert(normalized); + return PIPE_FORMAT_B8G8R8A8_UNORM; + } + + if (integer) { + switch (type) { + case GL_INT: return int_types_int[size-1]; + case GL_SHORT: return short_types_int[size-1]; + case GL_BYTE: return byte_types_int[size-1]; + case GL_UNSIGNED_INT: return uint_types_int[size-1]; + case GL_UNSIGNED_SHORT: return ushort_types_int[size-1]; + case GL_UNSIGNED_BYTE: return ubyte_types_int[size-1]; + default: assert(0); return 0; + } + } + else if (normalized) { + switch (type) { + case GL_DOUBLE: return double_types[size-1]; + case GL_FLOAT: return float_types[size-1]; + case GL_HALF_FLOAT: return half_float_types[size-1]; + case GL_INT: return int_types_norm[size-1]; + case GL_SHORT: return short_types_norm[size-1]; + case GL_BYTE: return byte_types_norm[size-1]; + case GL_UNSIGNED_INT: return uint_types_norm[size-1]; + case GL_UNSIGNED_SHORT: return ushort_types_norm[size-1]; + case GL_UNSIGNED_BYTE: return ubyte_types_norm[size-1]; + case GL_FIXED: return fixed_types[size-1]; + default: assert(0); return 0; + } + } + else { + switch (type) { + case GL_DOUBLE: return double_types[size-1]; + case GL_FLOAT: return float_types[size-1]; + case GL_HALF_FLOAT: return half_float_types[size-1]; + case GL_INT: return int_types_scale[size-1]; + case GL_SHORT: return short_types_scale[size-1]; + case GL_BYTE: return byte_types_scale[size-1]; + case GL_UNSIGNED_INT: return uint_types_scale[size-1]; + case GL_UNSIGNED_SHORT: return ushort_types_scale[size-1]; + case GL_UNSIGNED_BYTE: return ubyte_types_scale[size-1]; + case GL_FIXED: return fixed_types[size-1]; + default: assert(0); return 0; + } + } + return PIPE_FORMAT_NONE; /* silence compiler warning */ +} + +/** + * Examine the active arrays to determine if we have interleaved + * vertex arrays all living in one VBO, or all living in user space. + */ +static GLboolean +is_interleaved_arrays(const struct st_vertex_program *vp, + const struct st_vp_variant *vpv, + const struct gl_client_array **arrays) +{ + GLuint attr; + const struct gl_buffer_object *firstBufObj = NULL; + GLint firstStride = -1; + const GLubyte *firstPtr = NULL; + GLboolean userSpaceBuffer = GL_FALSE; + + for (attr = 0; attr < vpv->num_inputs; attr++) { + const GLuint mesaAttr = vp->index_to_input[attr]; + const struct gl_client_array *array = arrays[mesaAttr]; + const struct gl_buffer_object *bufObj = array->BufferObj; + const GLsizei stride = array->StrideB; /* in bytes */ + + if (attr == 0) { + /* save info about the first array */ + firstStride = stride; + firstPtr = array->Ptr; + firstBufObj = bufObj; + userSpaceBuffer = !bufObj || !bufObj->Name; + } + else { + /* check if other arrays interleave with the first, in same buffer */ + if (stride != firstStride) + return GL_FALSE; /* strides don't match */ + + if (bufObj != firstBufObj) + return GL_FALSE; /* arrays in different VBOs */ + + if (abs(array->Ptr - firstPtr) > firstStride) + return GL_FALSE; /* arrays start too far apart */ + + if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer) + return GL_FALSE; /* mix of VBO and user-space arrays */ + } + } + + return GL_TRUE; +} + +/** + * Set up for drawing interleaved arrays that all live in one VBO + * or all live in user space. + * \param vbuffer returns vertex buffer info + * \param velements returns vertex element info + */ +static boolean +setup_interleaved_attribs(const struct st_vertex_program *vp, + const struct st_vp_variant *vpv, + const struct gl_client_array **arrays, + struct pipe_vertex_buffer *vbuffer, + struct pipe_vertex_element velements[]) +{ + GLuint attr; + const GLubyte *low_addr = NULL; + GLboolean usingVBO; /* all arrays in a VBO? */ + struct gl_buffer_object *bufobj; + GLsizei stride; + + /* Find the lowest address of the arrays we're drawing, + * Init bufobj and stride. + */ + if (vpv->num_inputs) { + const GLuint mesaAttr0 = vp->index_to_input[0]; + const struct gl_client_array *array = arrays[mesaAttr0]; + + /* Since we're doing interleaved arrays, we know there'll be at most + * one buffer object and the stride will be the same for all arrays. + * Grab them now. + */ + bufobj = array->BufferObj; + stride = array->StrideB; + + low_addr = arrays[vp->index_to_input[0]]->Ptr; + + for (attr = 1; attr < vpv->num_inputs; attr++) { + const GLubyte *start = arrays[vp->index_to_input[attr]]->Ptr; + low_addr = MIN2(low_addr, start); + } + } + else { + /* not sure we'll ever have zero inputs, but play it safe */ + bufobj = NULL; + stride = 0; + low_addr = 0; + } + + /* are the arrays in user space? */ + usingVBO = _mesa_is_bufferobj(bufobj); + + for (attr = 0; attr < vpv->num_inputs; attr++) { + const GLuint mesaAttr = vp->index_to_input[attr]; + const struct gl_client_array *array = arrays[mesaAttr]; + unsigned src_offset = (unsigned) (array->Ptr - low_addr); + GLuint element_size = array->_ElementSize; + + assert(element_size == array->Size * _mesa_sizeof_type(array->Type)); + + velements[attr].src_offset = src_offset; + velements[attr].instance_divisor = array->InstanceDivisor; + velements[attr].vertex_buffer_index = 0; + velements[attr].src_format = st_pipe_vertex_format(array->Type, + array->Size, + array->Format, + array->Normalized, + array->Integer); + assert(velements[attr].src_format); + } + + /* + * Return the vbuffer info and setup user-space attrib info, if needed. + */ + if (vpv->num_inputs == 0) { + /* just defensive coding here */ + vbuffer->buffer = NULL; + vbuffer->user_buffer = NULL; + vbuffer->buffer_offset = 0; + vbuffer->stride = 0; + } + else if (usingVBO) { + /* all interleaved arrays in a VBO */ + struct st_buffer_object *stobj = st_buffer_object(bufobj); + + if (!stobj || !stobj->buffer) { + return FALSE; /* out-of-memory error probably */ + } + + vbuffer->buffer = stobj->buffer; + vbuffer->user_buffer = NULL; + vbuffer->buffer_offset = pointer_to_offset(low_addr); + vbuffer->stride = stride; + } + else { + /* all interleaved arrays in user memory */ + vbuffer->buffer = NULL; + vbuffer->user_buffer = low_addr; + vbuffer->buffer_offset = 0; + vbuffer->stride = stride; + } + return TRUE; +} + +/** + * Set up a separate pipe_vertex_buffer and pipe_vertex_element for each + * vertex attribute. + * \param vbuffer returns vertex buffer info + * \param velements returns vertex element info + */ +static boolean +setup_non_interleaved_attribs(struct st_context *st, + const struct st_vertex_program *vp, + const struct st_vp_variant *vpv, + const struct gl_client_array **arrays, + struct pipe_vertex_buffer vbuffer[], + struct pipe_vertex_element velements[]) +{ + struct gl_context *ctx = st->ctx; + GLuint attr; + + for (attr = 0; attr < vpv->num_inputs; attr++) { + const GLuint mesaAttr = vp->index_to_input[attr]; + const struct gl_client_array *array = arrays[mesaAttr]; + struct gl_buffer_object *bufobj = array->BufferObj; + GLsizei stride = array->StrideB; + + assert(array->_ElementSize == array->Size * _mesa_sizeof_type(array->Type)); + + if (_mesa_is_bufferobj(bufobj)) { + /* Attribute data is in a VBO. + * Recall that for VBOs, the gl_client_array->Ptr field is + * really an offset from the start of the VBO, not a pointer. + */ + struct st_buffer_object *stobj = st_buffer_object(bufobj); + + if (!stobj || !stobj->buffer) { + return FALSE; /* out-of-memory error probably */ + } + + vbuffer[attr].buffer = stobj->buffer; + vbuffer[attr].user_buffer = NULL; + vbuffer[attr].buffer_offset = pointer_to_offset(array->Ptr); + } + else { + /* wrap user data */ + void *ptr; + + if (array->Ptr) { + ptr = (void *) array->Ptr; + } + else { + /* no array, use ctx->Current.Attrib[] value */ + ptr = (void *) ctx->Current.Attrib[mesaAttr]; + stride = 0; + } + + assert(ptr); + + vbuffer[attr].buffer = NULL; + vbuffer[attr].user_buffer = ptr; + vbuffer[attr].buffer_offset = 0; + } + + /* common-case setup */ + vbuffer[attr].stride = stride; /* in bytes */ + + velements[attr].src_offset = 0; + velements[attr].instance_divisor = array->InstanceDivisor; + velements[attr].vertex_buffer_index = attr; + velements[attr].src_format = st_pipe_vertex_format(array->Type, + array->Size, + array->Format, + array->Normalized, + array->Integer); + assert(velements[attr].src_format); + } + return TRUE; +} + +static void update_array(struct st_context *st) +{ + struct gl_context *ctx = st->ctx; + const struct gl_client_array **arrays = ctx->Array._DrawArrays; + const struct st_vertex_program *vp; + const struct st_vp_variant *vpv; + struct pipe_vertex_buffer vbuffer[PIPE_MAX_SHADER_INPUTS]; + struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS]; + unsigned num_vbuffers, num_velements; + + st->vertex_array_out_of_memory = FALSE; + + /* No drawing has been done yet, so do nothing. */ + if (!arrays) + return; + + /* vertex program validation must be done before this */ + vp = st->vp; + vpv = st->vp_variant; + + memset(velements, 0, sizeof(struct pipe_vertex_element) * vpv->num_inputs); + + /* + * Setup the vbuffer[] and velements[] arrays. + */ + if (is_interleaved_arrays(vp, vpv, arrays)) { + if (!setup_interleaved_attribs(vp, vpv, arrays, vbuffer, velements)) { + st->vertex_array_out_of_memory = TRUE; + return; + } + + num_vbuffers = 1; + num_velements = vpv->num_inputs; + if (num_velements == 0) + num_vbuffers = 0; + } + else { + if (!setup_non_interleaved_attribs(st, vp, vpv, arrays, vbuffer, + velements)) { + st->vertex_array_out_of_memory = TRUE; + return; + } + + num_vbuffers = vpv->num_inputs; + num_velements = vpv->num_inputs; + } + + cso_set_vertex_buffers(st->cso_context, num_vbuffers, vbuffer); + cso_set_vertex_elements(st->cso_context, num_velements, velements); +} + + +const struct st_tracked_state st_update_array = { + "st_update_array", /* name */ + { /* dirty */ + (_NEW_PROGRAM | _NEW_BUFFER_OBJECT), /* mesa */ + ST_NEW_VERTEX_ARRAYS | ST_NEW_VERTEX_PROGRAM, /* st */ + }, + update_array /* update */ +}; diff --git a/mesalib/src/mesa/state_tracker/st_cb_drawpixels.c b/mesalib/src/mesa/state_tracker/st_cb_drawpixels.c index 9a3f22465..d3f8d1368 100644 --- a/mesalib/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/mesalib/src/mesa/state_tracker/st_cb_drawpixels.c @@ -217,7 +217,7 @@ st_make_drawpix_z_stencil_program(struct st_context *st, if (!p) return NULL; - p->NumInstructions = write_depth ? 2 : 1; + p->NumInstructions = write_depth ? 3 : 1; p->NumInstructions += write_stencil ? 1 : 0; p->Instructions = _mesa_alloc_instructions(p->NumInstructions); @@ -238,6 +238,13 @@ st_make_drawpix_z_stencil_program(struct st_context *st, p->Instructions[ic].TexSrcUnit = 0; p->Instructions[ic].TexSrcTarget = TEXTURE_2D_INDEX; ic++; + /* MOV result.color, fragment.color; */ + p->Instructions[ic].Opcode = OPCODE_MOV; + p->Instructions[ic].DstReg.File = PROGRAM_OUTPUT; + p->Instructions[ic].DstReg.Index = FRAG_RESULT_COLOR; + p->Instructions[ic].SrcReg[0].File = PROGRAM_INPUT; + p->Instructions[ic].SrcReg[0].Index = FRAG_ATTRIB_COL0; + ic++; } if (write_stencil) { @@ -260,8 +267,10 @@ st_make_drawpix_z_stencil_program(struct st_context *st, p->InputsRead = FRAG_BIT_TEX0 | FRAG_BIT_COL0; p->OutputsWritten = 0; - if (write_depth) + if (write_depth) { p->OutputsWritten |= BITFIELD64_BIT(FRAG_RESULT_DEPTH); + p->OutputsWritten |= BITFIELD64_BIT(FRAG_RESULT_COLOR); + } if (write_stencil) p->OutputsWritten |= BITFIELD64_BIT(FRAG_RESULT_STENCIL); diff --git a/mesalib/src/mesa/state_tracker/st_context.h b/mesalib/src/mesa/state_tracker/st_context.h index 55ae65b3c..734b4d9c1 100644 --- a/mesalib/src/mesa/state_tracker/st_context.h +++ b/mesalib/src/mesa/state_tracker/st_context.h @@ -88,6 +88,8 @@ struct st_context */ boolean invalidate_on_gl_viewport; + boolean vertex_array_out_of_memory; + /* Some state is contained in constant objects. * Other state is just parameter values. */ diff --git a/mesalib/src/mesa/state_tracker/st_draw.c b/mesalib/src/mesa/state_tracker/st_draw.c index 0a06e9995..db8caa566 100644 --- a/mesalib/src/mesa/state_tracker/st_draw.c +++ b/mesalib/src/mesa/state_tracker/st_draw.c @@ -31,10 +31,6 @@ * this function whether the user called glBegin/End, glDrawArrays, * glDrawElements, glEvalMesh, or glCalList, etc. * - * We basically convert the VBO's vertex attribute/array information into - * Gallium vertex state, bind the vertex buffer objects and call - * pipe->draw_vbo(). - * * Authors: * Keith Whitwell <keith@tungstengraphics.com> */ @@ -68,261 +64,6 @@ #include "../glsl/ir_uniform.h" -static GLuint double_types[4] = { - PIPE_FORMAT_R64_FLOAT, - PIPE_FORMAT_R64G64_FLOAT, - PIPE_FORMAT_R64G64B64_FLOAT, - PIPE_FORMAT_R64G64B64A64_FLOAT -}; - -static GLuint float_types[4] = { - PIPE_FORMAT_R32_FLOAT, - PIPE_FORMAT_R32G32_FLOAT, - PIPE_FORMAT_R32G32B32_FLOAT, - PIPE_FORMAT_R32G32B32A32_FLOAT -}; - -static GLuint half_float_types[4] = { - PIPE_FORMAT_R16_FLOAT, - PIPE_FORMAT_R16G16_FLOAT, - PIPE_FORMAT_R16G16B16_FLOAT, - PIPE_FORMAT_R16G16B16A16_FLOAT -}; - -static GLuint uint_types_norm[4] = { - PIPE_FORMAT_R32_UNORM, - PIPE_FORMAT_R32G32_UNORM, - PIPE_FORMAT_R32G32B32_UNORM, - PIPE_FORMAT_R32G32B32A32_UNORM -}; - -static GLuint uint_types_scale[4] = { - PIPE_FORMAT_R32_USCALED, - PIPE_FORMAT_R32G32_USCALED, - PIPE_FORMAT_R32G32B32_USCALED, - PIPE_FORMAT_R32G32B32A32_USCALED -}; - -static GLuint uint_types_int[4] = { - PIPE_FORMAT_R32_UINT, - PIPE_FORMAT_R32G32_UINT, - PIPE_FORMAT_R32G32B32_UINT, - PIPE_FORMAT_R32G32B32A32_UINT -}; - -static GLuint int_types_norm[4] = { - PIPE_FORMAT_R32_SNORM, - PIPE_FORMAT_R32G32_SNORM, - PIPE_FORMAT_R32G32B32_SNORM, - PIPE_FORMAT_R32G32B32A32_SNORM -}; - -static GLuint int_types_scale[4] = { - PIPE_FORMAT_R32_SSCALED, - PIPE_FORMAT_R32G32_SSCALED, - PIPE_FORMAT_R32G32B32_SSCALED, - PIPE_FORMAT_R32G32B32A32_SSCALED -}; - -static GLuint int_types_int[4] = { - PIPE_FORMAT_R32_SINT, - PIPE_FORMAT_R32G32_SINT, - PIPE_FORMAT_R32G32B32_SINT, - PIPE_FORMAT_R32G32B32A32_SINT -}; - -static GLuint ushort_types_norm[4] = { - PIPE_FORMAT_R16_UNORM, - PIPE_FORMAT_R16G16_UNORM, - PIPE_FORMAT_R16G16B16_UNORM, - PIPE_FORMAT_R16G16B16A16_UNORM -}; - -static GLuint ushort_types_scale[4] = { - PIPE_FORMAT_R16_USCALED, - PIPE_FORMAT_R16G16_USCALED, - PIPE_FORMAT_R16G16B16_USCALED, - PIPE_FORMAT_R16G16B16A16_USCALED -}; - -static GLuint ushort_types_int[4] = { - PIPE_FORMAT_R16_UINT, - PIPE_FORMAT_R16G16_UINT, - PIPE_FORMAT_R16G16B16_UINT, - PIPE_FORMAT_R16G16B16A16_UINT -}; - -static GLuint short_types_norm[4] = { - PIPE_FORMAT_R16_SNORM, - PIPE_FORMAT_R16G16_SNORM, - PIPE_FORMAT_R16G16B16_SNORM, - PIPE_FORMAT_R16G16B16A16_SNORM -}; - -static GLuint short_types_scale[4] = { - PIPE_FORMAT_R16_SSCALED, - PIPE_FORMAT_R16G16_SSCALED, - PIPE_FORMAT_R16G16B16_SSCALED, - PIPE_FORMAT_R16G16B16A16_SSCALED -}; - -static GLuint short_types_int[4] = { - PIPE_FORMAT_R16_SINT, - PIPE_FORMAT_R16G16_SINT, - PIPE_FORMAT_R16G16B16_SINT, - PIPE_FORMAT_R16G16B16A16_SINT -}; - -static GLuint ubyte_types_norm[4] = { - PIPE_FORMAT_R8_UNORM, - PIPE_FORMAT_R8G8_UNORM, - PIPE_FORMAT_R8G8B8_UNORM, - PIPE_FORMAT_R8G8B8A8_UNORM -}; - -static GLuint ubyte_types_scale[4] = { - PIPE_FORMAT_R8_USCALED, - PIPE_FORMAT_R8G8_USCALED, - PIPE_FORMAT_R8G8B8_USCALED, - PIPE_FORMAT_R8G8B8A8_USCALED -}; - -static GLuint ubyte_types_int[4] = { - PIPE_FORMAT_R8_UINT, - PIPE_FORMAT_R8G8_UINT, - PIPE_FORMAT_R8G8B8_UINT, - PIPE_FORMAT_R8G8B8A8_UINT -}; - -static GLuint byte_types_norm[4] = { - PIPE_FORMAT_R8_SNORM, - PIPE_FORMAT_R8G8_SNORM, - PIPE_FORMAT_R8G8B8_SNORM, - PIPE_FORMAT_R8G8B8A8_SNORM -}; - -static GLuint byte_types_scale[4] = { - PIPE_FORMAT_R8_SSCALED, - PIPE_FORMAT_R8G8_SSCALED, - PIPE_FORMAT_R8G8B8_SSCALED, - PIPE_FORMAT_R8G8B8A8_SSCALED -}; - -static GLuint byte_types_int[4] = { - PIPE_FORMAT_R8_SINT, - PIPE_FORMAT_R8G8_SINT, - PIPE_FORMAT_R8G8B8_SINT, - PIPE_FORMAT_R8G8B8A8_SINT -}; - -static GLuint fixed_types[4] = { - PIPE_FORMAT_R32_FIXED, - PIPE_FORMAT_R32G32_FIXED, - PIPE_FORMAT_R32G32B32_FIXED, - PIPE_FORMAT_R32G32B32A32_FIXED -}; - - - -/** - * Return a PIPE_FORMAT_x for the given GL datatype and size. - */ -enum pipe_format -st_pipe_vertex_format(GLenum type, GLuint size, GLenum format, - GLboolean normalized, GLboolean integer) -{ - assert((type >= GL_BYTE && type <= GL_DOUBLE) || - type == GL_FIXED || type == GL_HALF_FLOAT || - type == GL_INT_2_10_10_10_REV || - type == GL_UNSIGNED_INT_2_10_10_10_REV); - assert(size >= 1); - assert(size <= 4); - assert(format == GL_RGBA || format == GL_BGRA); - - if (type == GL_INT_2_10_10_10_REV || - type == GL_UNSIGNED_INT_2_10_10_10_REV) { - assert(size == 4); - assert(!integer); - - if (format == GL_BGRA) { - if (type == GL_INT_2_10_10_10_REV) { - if (normalized) - return PIPE_FORMAT_B10G10R10A2_SNORM; - else - return PIPE_FORMAT_B10G10R10A2_SSCALED; - } else { - if (normalized) - return PIPE_FORMAT_B10G10R10A2_UNORM; - else - return PIPE_FORMAT_B10G10R10A2_USCALED; - } - } else { - if (type == GL_INT_2_10_10_10_REV) { - if (normalized) - return PIPE_FORMAT_R10G10B10A2_SNORM; - else - return PIPE_FORMAT_R10G10B10A2_SSCALED; - } else { - if (normalized) - return PIPE_FORMAT_R10G10B10A2_UNORM; - else - return PIPE_FORMAT_R10G10B10A2_USCALED; - } - } - } - - if (format == GL_BGRA) { - /* this is an odd-ball case */ - assert(type == GL_UNSIGNED_BYTE); - assert(normalized); - return PIPE_FORMAT_B8G8R8A8_UNORM; - } - - if (integer) { - switch (type) { - case GL_INT: return int_types_int[size-1]; - case GL_SHORT: return short_types_int[size-1]; - case GL_BYTE: return byte_types_int[size-1]; - case GL_UNSIGNED_INT: return uint_types_int[size-1]; - case GL_UNSIGNED_SHORT: return ushort_types_int[size-1]; - case GL_UNSIGNED_BYTE: return ubyte_types_int[size-1]; - default: assert(0); return 0; - } - } - else if (normalized) { - switch (type) { - case GL_DOUBLE: return double_types[size-1]; - case GL_FLOAT: return float_types[size-1]; - case GL_HALF_FLOAT: return half_float_types[size-1]; - case GL_INT: return int_types_norm[size-1]; - case GL_SHORT: return short_types_norm[size-1]; - case GL_BYTE: return byte_types_norm[size-1]; - case GL_UNSIGNED_INT: return uint_types_norm[size-1]; - case GL_UNSIGNED_SHORT: return ushort_types_norm[size-1]; - case GL_UNSIGNED_BYTE: return ubyte_types_norm[size-1]; - case GL_FIXED: return fixed_types[size-1]; - default: assert(0); return 0; - } - } - else { - switch (type) { - case GL_DOUBLE: return double_types[size-1]; - case GL_FLOAT: return float_types[size-1]; - case GL_HALF_FLOAT: return half_float_types[size-1]; - case GL_INT: return int_types_scale[size-1]; - case GL_SHORT: return short_types_scale[size-1]; - case GL_BYTE: return byte_types_scale[size-1]; - case GL_UNSIGNED_INT: return uint_types_scale[size-1]; - case GL_UNSIGNED_SHORT: return ushort_types_scale[size-1]; - case GL_UNSIGNED_BYTE: return ubyte_types_scale[size-1]; - case GL_FIXED: return fixed_types[size-1]; - default: assert(0); return 0; - } - } - return PIPE_FORMAT_NONE; /* silence compiler warning */ -} - - /** * This is very similar to vbo_all_varyings_in_vbos() but we are * only interested in per-vertex data. See bug 38626. @@ -342,240 +83,6 @@ all_varyings_in_vbos(const struct gl_client_array *arrays[]) } -/** - * Examine the active arrays to determine if we have interleaved - * vertex arrays all living in one VBO, or all living in user space. - */ -static GLboolean -is_interleaved_arrays(const struct st_vertex_program *vp, - const struct st_vp_variant *vpv, - const struct gl_client_array **arrays) -{ - GLuint attr; - const struct gl_buffer_object *firstBufObj = NULL; - GLint firstStride = -1; - const GLubyte *firstPtr = NULL; - GLboolean userSpaceBuffer = GL_FALSE; - - for (attr = 0; attr < vpv->num_inputs; attr++) { - const GLuint mesaAttr = vp->index_to_input[attr]; - const struct gl_client_array *array = arrays[mesaAttr]; - const struct gl_buffer_object *bufObj = array->BufferObj; - const GLsizei stride = array->StrideB; /* in bytes */ - - if (attr == 0) { - /* save info about the first array */ - firstStride = stride; - firstPtr = array->Ptr; - firstBufObj = bufObj; - userSpaceBuffer = !bufObj || !bufObj->Name; - } - else { - /* check if other arrays interleave with the first, in same buffer */ - if (stride != firstStride) - return GL_FALSE; /* strides don't match */ - - if (bufObj != firstBufObj) - return GL_FALSE; /* arrays in different VBOs */ - - if (abs(array->Ptr - firstPtr) > firstStride) - return GL_FALSE; /* arrays start too far apart */ - - if ((!_mesa_is_bufferobj(bufObj)) != userSpaceBuffer) - return GL_FALSE; /* mix of VBO and user-space arrays */ - } - } - - return GL_TRUE; -} - - -/** - * Set up for drawing interleaved arrays that all live in one VBO - * or all live in user space. - * \param vbuffer returns vertex buffer info - * \param velements returns vertex element info - * \return GL_TRUE for success, GL_FALSE otherwise (probably out of memory) - */ -static GLboolean -setup_interleaved_attribs(struct gl_context *ctx, - const struct st_vertex_program *vp, - const struct st_vp_variant *vpv, - const struct gl_client_array **arrays, - struct pipe_vertex_buffer *vbuffer, - struct pipe_vertex_element velements[]) -{ - GLuint attr; - const GLubyte *low_addr = NULL; - GLboolean usingVBO; /* all arrays in a VBO? */ - struct gl_buffer_object *bufobj; - GLsizei stride; - - /* Find the lowest address of the arrays we're drawing, - * Init bufobj and stride. - */ - if (vpv->num_inputs) { - const GLuint mesaAttr0 = vp->index_to_input[0]; - const struct gl_client_array *array = arrays[mesaAttr0]; - - /* Since we're doing interleaved arrays, we know there'll be at most - * one buffer object and the stride will be the same for all arrays. - * Grab them now. - */ - bufobj = array->BufferObj; - stride = array->StrideB; - - low_addr = arrays[vp->index_to_input[0]]->Ptr; - - for (attr = 1; attr < vpv->num_inputs; attr++) { - const GLubyte *start = arrays[vp->index_to_input[attr]]->Ptr; - low_addr = MIN2(low_addr, start); - } - } - else { - /* not sure we'll ever have zero inputs, but play it safe */ - bufobj = NULL; - stride = 0; - low_addr = 0; - } - - /* are the arrays in user space? */ - usingVBO = _mesa_is_bufferobj(bufobj); - - for (attr = 0; attr < vpv->num_inputs; attr++) { - const GLuint mesaAttr = vp->index_to_input[attr]; - const struct gl_client_array *array = arrays[mesaAttr]; - unsigned src_offset = (unsigned) (array->Ptr - low_addr); - GLuint element_size = array->_ElementSize; - - assert(element_size == array->Size * _mesa_sizeof_type(array->Type)); - - velements[attr].src_offset = src_offset; - velements[attr].instance_divisor = array->InstanceDivisor; - velements[attr].vertex_buffer_index = 0; - velements[attr].src_format = st_pipe_vertex_format(array->Type, - array->Size, - array->Format, - array->Normalized, - array->Integer); - assert(velements[attr].src_format); - } - - /* - * Return the vbuffer info and setup user-space attrib info, if needed. - */ - if (vpv->num_inputs == 0) { - /* just defensive coding here */ - vbuffer->buffer = NULL; - vbuffer->user_buffer = NULL; - vbuffer->buffer_offset = 0; - vbuffer->stride = 0; - } - else if (usingVBO) { - /* all interleaved arrays in a VBO */ - struct st_buffer_object *stobj = st_buffer_object(bufobj); - - if (!stobj || !stobj->buffer) { - /* probably out of memory (or zero-sized buffer) */ - return GL_FALSE; - } - - vbuffer->buffer = stobj->buffer; - vbuffer->user_buffer = NULL; - vbuffer->buffer_offset = pointer_to_offset(low_addr); - vbuffer->stride = stride; - } - else { - /* all interleaved arrays in user memory */ - vbuffer->buffer = NULL; - vbuffer->user_buffer = low_addr; - vbuffer->buffer_offset = 0; - vbuffer->stride = stride; - } - - return GL_TRUE; -} - - -/** - * Set up a separate pipe_vertex_buffer and pipe_vertex_element for each - * vertex attribute. - * \param vbuffer returns vertex buffer info - * \param velements returns vertex element info - * \return GL_TRUE for success, GL_FALSE otherwise (probably out of memory) - */ -static GLboolean -setup_non_interleaved_attribs(struct gl_context *ctx, - const struct st_vertex_program *vp, - const struct st_vp_variant *vpv, - const struct gl_client_array **arrays, - struct pipe_vertex_buffer vbuffer[], - struct pipe_vertex_element velements[]) -{ - GLuint attr; - - for (attr = 0; attr < vpv->num_inputs; attr++) { - const GLuint mesaAttr = vp->index_to_input[attr]; - const struct gl_client_array *array = arrays[mesaAttr]; - struct gl_buffer_object *bufobj = array->BufferObj; - GLsizei stride = array->StrideB; - - assert(array->_ElementSize == array->Size * _mesa_sizeof_type(array->Type)); - - if (_mesa_is_bufferobj(bufobj)) { - /* Attribute data is in a VBO. - * Recall that for VBOs, the gl_client_array->Ptr field is - * really an offset from the start of the VBO, not a pointer. - */ - struct st_buffer_object *stobj = st_buffer_object(bufobj); - - if (!stobj || !stobj->buffer) { - /* probably out of memory (or zero-sized buffer) */ - return GL_FALSE; - } - - vbuffer[attr].buffer = stobj->buffer; - vbuffer[attr].user_buffer = NULL; - vbuffer[attr].buffer_offset = pointer_to_offset(array->Ptr); - } - else { - /* wrap user data */ - void *ptr; - - if (array->Ptr) { - ptr = (void *) array->Ptr; - } - else { - /* no array, use ctx->Current.Attrib[] value */ - ptr = (void *) ctx->Current.Attrib[mesaAttr]; - stride = 0; - } - - assert(ptr); - - vbuffer[attr].buffer = NULL; - vbuffer[attr].user_buffer = ptr; - vbuffer[attr].buffer_offset = 0; - } - - /* common-case setup */ - vbuffer[attr].stride = stride; /* in bytes */ - - velements[attr].src_offset = 0; - velements[attr].instance_divisor = array->InstanceDivisor; - velements[attr].vertex_buffer_index = attr; - velements[attr].src_format = st_pipe_vertex_format(array->Type, - array->Size, - array->Format, - array->Normalized, - array->Integer); - assert(velements[attr].src_format); - } - - return GL_TRUE; -} - - static void setup_index_buffer(struct st_context *st, const struct _mesa_index_buffer *ib, @@ -665,58 +172,6 @@ translate_prim(const struct gl_context *ctx, unsigned prim) /** - * Setup vertex arrays and buffers prior to drawing. - * \return GL_TRUE for success, GL_FALSE otherwise (probably out of memory) - */ -static GLboolean -st_validate_varrays(struct gl_context *ctx, - const struct gl_client_array **arrays) -{ - struct st_context *st = st_context(ctx); - const struct st_vertex_program *vp; - const struct st_vp_variant *vpv; - struct pipe_vertex_buffer vbuffer[PIPE_MAX_SHADER_INPUTS]; - struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS]; - unsigned num_vbuffers, num_velements; - - /* must get these after state validation! */ - vp = st->vp; - vpv = st->vp_variant; - - memset(velements, 0, sizeof(struct pipe_vertex_element) * vpv->num_inputs); - - /* - * Setup the vbuffer[] and velements[] arrays. - */ - if (is_interleaved_arrays(vp, vpv, arrays)) { - if (!setup_interleaved_attribs(ctx, vp, vpv, arrays, vbuffer, - velements)) { - return GL_FALSE; - } - - num_vbuffers = 1; - num_velements = vpv->num_inputs; - if (num_velements == 0) - num_vbuffers = 0; - } - else { - if (!setup_non_interleaved_attribs(ctx, vp, vpv, arrays, - vbuffer, velements)) { - return GL_FALSE; - } - - num_vbuffers = vpv->num_inputs; - num_velements = vpv->num_inputs; - } - - cso_set_vertex_buffers(st->cso_context, num_vbuffers, vbuffer); - cso_set_vertex_elements(st->cso_context, num_velements, velements); - - return GL_TRUE; -} - - -/** * This function gets plugged into the VBO module and is called when * we have something to render. * Basically, translate the information into the format expected by gallium. @@ -736,38 +191,16 @@ st_draw_vbo(struct gl_context *ctx, struct pipe_draw_info info; const struct gl_client_array **arrays = ctx->Array._DrawArrays; unsigned i; - GLboolean new_array; /* Mesa core state should have been validated already */ assert(ctx->NewState == 0x0); - /* Get Mesa driver state. */ - st->dirty.st |= ctx->NewDriverState; - ctx->NewDriverState = 0; - - new_array = - (st->dirty.st & (ST_NEW_VERTEX_ARRAYS | ST_NEW_VERTEX_PROGRAM)) || - (st->dirty.mesa & (_NEW_PROGRAM | _NEW_BUFFER_OBJECT)) != 0; - /* Validate state. */ - if (st->dirty.st) { - GLboolean vertDataEdgeFlags; - - vertDataEdgeFlags = arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj && - arrays[VERT_ATTRIB_EDGEFLAG]->BufferObj->Name; - if (vertDataEdgeFlags != st->vertdata_edgeflags) { - st->vertdata_edgeflags = vertDataEdgeFlags; - st->dirty.st |= ST_NEW_EDGEFLAGS_DATA; - } - + if (st->dirty.st || ctx->NewDriverState) { st_validate_state(st); - if (new_array) { - if (!st_validate_varrays(ctx, arrays)) { - /* probably out of memory, no-op the draw call */ - return; - } - } + if (st->vertex_array_out_of_memory) + return; #if 0 if (MESA_VERBOSE & VERBOSE_GLSL) { diff --git a/mesalib/src/mesa/state_tracker/st_draw.h b/mesalib/src/mesa/state_tracker/st_draw.h index c608051eb..3313fc8c7 100644 --- a/mesalib/src/mesa/state_tracker/st_draw.h +++ b/mesalib/src/mesa/state_tracker/st_draw.h @@ -67,13 +67,6 @@ st_feedback_draw_vbo(struct gl_context *ctx, GLuint max_index, struct gl_transform_feedback_object *tfb_vertcount); -/* Internal function: - */ -extern enum pipe_format -st_pipe_vertex_format(GLenum type, GLuint size, GLenum format, - GLboolean normalized, GLboolean integer); - - /** * When drawing with VBOs, the addresses specified with * glVertex/Color/TexCoordPointer() are really offsets into the VBO, not real |