summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
Commit message (Collapse)AuthorAgeFilesLines
* add FreeTexImageData hook to help single-copy texturing in driversKeith Whitwell2005-03-225-37/+62
|
* Enable the generation of server-side __glGetBooleanv_size and relatedIan Romanick2005-03-171-2779/+2879
| | | | | | | | | | | | | | | | | | functions. There are two parts to this. First, a size element with a name "Get" is shorthand for having four separate size elements with names "GetIntegerv", "GetDoublev", "GetFloatv", and "GetBooleanv". Additionally, a count of "?" is treated specially. This causes a call to a handcoded function named "__gl<base name>_variable_size". This is *only* needed to support GL_COMPRESSED_TEXTURE_FORMATS. That enum can return a variable number of values depending how many compressed texture formats are supported by the implementation. Fix a problem with glGetProgram{Local,Env}Parameter[df]vARB, glAreProgramsResidentNV, and glGetVertexAttribivNV. These changes only affect code generated for the server-side. The changes to enum.c are caused by enums added for the server-side __glGetBooleanv_size functions.
* change gl_buffer_object's Size field to GLsizeiptrARB typeBrian Paul2005-03-032-2/+2
|
* silence warningsBrian Paul2005-02-271-2/+2
|
* Rename _mesa_update_buffers() to _mesa_update_draw_buffer_bounds() and doBrian Paul2005-02-264-43/+67
| | | | | additional checks. Replace _mesa_init_buffers() with _mesa_init_scissor() and _mesa_init_multisample().
* Fairly significant changes to enums.c and the way it is generated. enums.cIan Romanick2005-02-261-3009/+4425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | now contains 3 static tables. The first table is a single, large string of all the enum names. The second table is an array, sorted by enum name, of indexes to the string table and the matching enum value. The extra string table is used to eliminate relocs (and save space) in the compiled file. The third table is an array, sorted by enum value, of indexes into the second table. The [name, enum] table contains all of the enums, but the table sorted by enum-value does not. This table contains one entry per enum value. For enum values that have multiple names (e.g., 0x84C0 has GL_TEXTURE0_ARB and GL_TEXTURE0), only an index to the "best" name will appear in the table. gl_enums.py gives precedence to "core" GL versions of names, followed by ARB versions, followed by EXT versions, followed, finally, by vendor versions (i.e., anything that doesn't fall into one of the previous categories). By filtering the unneeded elements from this table, not only can we guarantee determinism in the generated tables, but we save 364 elements in the table. The optimizations outlined above reduced the size of the stripped enums.o (on x86) from ~80KB to ~53KB. The internal organization of gl_enums.py was also heavily modified. Previously enums were stored in an unsorted list as [value, name] tuples (basically). This list was then sorted, using a user-specified compare function (i.e., VERY slow in most Python implementations) to generate a table sorted by enum value. It was then sorted again, using another user-specified compare function, to generate a table sorted by name. Enums are now stored in a dictionary, called enum_table, with the enum value as the key. Each dictionary element is a list of [name, priority] pairs. The priority is determined as described above. The table sorted by enum value is generated by sorting the keys of enum_table (i.e., very fast). The tables sorted by name are generated by creating a list, called name_table, of [name, enum value] pairs. This table can then be sorted by doing name_table.sort() (i.e., very fast). The result is a fair amount more Python code, but execution time was reduced from ~14 seconds to ~2 seconds.
* More GL_EXT_framebuffer_object: rename some things, added device driver hooks.Brian Paul2005-02-244-101/+279
|
* Sort the enums in the Python code, instead of at runtime. (Zack Rusin)Brian Paul2005-02-231-772/+2235
|
* now generated with Python scriptBrian Paul2005-02-221-813/+1384
|
* added a bunch of const in the decoderDaniel Borca2005-02-141-30/+29
|
* unlock mutex upon error return (Jeff Muizelaar)Brian Paul2005-02-122-0/+2
|
* mesa-main-0-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-118-34/+35
|
* new comments, fix zoffset error testBrian Paul2005-02-101-3/+36
|
* glGet*(GL_FRAGMENT_PROGRAM_BINDING_NV) was returning the vertex program binding.Brian Paul2005-02-092-4/+4
|
* initial support for GL_EXT_framebuffer_objectBrian Paul2005-02-091-55/+139
|
* implement the 'completeness' testsBrian Paul2005-02-092-91/+265
|
* clamp anisotropy against max valueBrian Paul2005-02-081-3/+5
|
* just some commentsBrian Paul2005-02-081-0/+7
|
* a bunch of assorted fixesBrian Paul2005-02-082-78/+82
|
* plug in GL_EXT_framebuffer_object functionsBrian Paul2005-02-081-0/+23
|
* removed GL_EXT_framebuffer_object tokensBrian Paul2005-02-081-52/+0
|
* checkpoint latest workBrian Paul2005-02-082-46/+141
|
* added missing prototypeBrian Paul2005-02-081-2/+9
|
* indentation fixBrian Paul2005-02-081-6/+7
|
* argb8888 optimizations from via branchKeith Whitwell2005-02-072-33/+297
|
* More texture enums (Andreas Stenglein)Keith Whitwell2005-02-071-10/+37
|
* GL_ARB_texture_rectangle enums (Andreas Stenglein)Keith Whitwell2005-02-071-0/+6
|
* additional work on GL_EXT_framebuffer_objectBrian Paul2005-02-079-263/+615
|
* added fbobject.c to sourcesBrian Paul2005-02-051-0/+3
|
* Some initial work on GL_EXT_framebuffer_object.Brian Paul2005-02-055-11/+847
|
* Remove the Shared->TexObjectList pointer and Next field from gl_texture_object.Brian Paul2005-02-053-77/+30
| | | | | | Was only used by two drivers to walk over all texture objects. Can do that via the hash table instead. Cleaned up some comments for struct gl_texture_object.
* add a few commentsBrian Paul2005-02-051-0/+5
|
* clamp viewport against ctx->Const.MaxViewportWidth/Height instead of ↵Brian Paul2005-02-021-4/+4
| | | | MAX_WIDTH/HEIGHT
* fix max viewport queryBrian Paul2005-01-302-7/+9
|
* add number of passes count to ati_fragment_shaderDave Airlie2005-01-301-0/+1
|
* remove a bunch of temporary #defines, now that glext.h was updatedBrian Paul2005-01-261-46/+1
|
* just comments/clean-upBrian Paul2005-01-262-8/+14
|
* added mutex to-do commentBrian Paul2005-01-261-0/+4
|
* just fix a comment and update dateBrian Paul2005-01-261-2/+2
|
* RGB/LUMINANCE texelfetchers (float version) returned 255.0F for alpha ↵Daniel Borca2005-01-261-14/+14
| | | | channel, instead of 1.0F
* Added _mesa_HashNextEntry() function to allow walking over all entriesBrian Paul2005-01-242-46/+127
| | | | | | in a hash table. Added _mesa_test_hash_functions() for unit testing. Updated comments, etc.
* Determine ahead of time whether a display list will include verticesKeith Whitwell2005-01-223-20/+68
| | | | | | which have to be processed in the 'loopback' path. If so, send all vertices that way as the transition from playback->loopback has several problems.
* add getstring.c; remove arb*.h nv*.h stuffMichal Krol2005-01-211-44/+4
|
* Update glDeletePrograms/Buffers() so that the ID is freed immediately, likeBrian Paul2005-01-202-14/+6
| | | | texture objects.
* Removed gl_texture_object's DeletePending. Changed a comment.Brian Paul2005-01-191-2/+1
|
* Change behaviour of glDeleteTextures as discussed on ARB list.Brian Paul2005-01-191-14/+9
| | | | | | glDeleteTexture makes the texture ID immediately free for re-use while the actual texture object lingers until its reference count goes to zero (when no longer bound by any rendering context).
* fix MAX_VERTEX_ATTRIBS_ARB queryMichal Krol2005-01-182-4/+4
|
* add 3dlabs_shhandle interfaceMichal Krol2005-01-171-41/+42
|
* allow more internalFormat/format combinations (i hope i got it right)Daniel Borca2005-01-171-2/+5
|
* clean up gl2 structsBrian Paul2005-01-171-77/+85
|