profile/ivi/mesa.git
18 years agoAdded simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
Brian Paul [Sat, 3 Jun 2006 15:32:27 +0000 (15:32 +0000)]
Added simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
and cast.  Simplifies the code a little bit elsewhere.

18 years agoupdates for using libdrm (Hanno Bock)
Brian Paul [Sat, 3 Jun 2006 15:17:07 +0000 (15:17 +0000)]
updates for using libdrm (Hanno Bock)

18 years agominor clean-ups
Brian Paul [Fri, 2 Jun 2006 22:51:45 +0000 (22:51 +0000)]
minor clean-ups

18 years agoimplement arb_vertex_program in hw for r200. Code contains still some hacks, generic...
Roland Scheidegger [Fri, 2 Jun 2006 22:47:31 +0000 (22:47 +0000)]
implement arb_vertex_program in hw for r200. Code contains still some hacks, generic attribs cause a fallback, but otherwise it seems to work quite well. Passes all glean vertProg1 tests with the exception of the degnerated LIT case (which is a hw limitation), as well as runs the r200 render path of doom3/quake4 (1.1 patch needed for quake4). The code is heavily borrowed from the r300 driver as vertex programs encoding is almost identical. arb_vertex_program is not yet announced by default and still needs to be enabled via driconf.

18 years agoThomas Sondergaard's API tracer
Brian Paul [Fri, 2 Jun 2006 14:50:28 +0000 (14:50 +0000)]
Thomas Sondergaard's API tracer

18 years agoset per-context GL_DRAW_BUFFER state regardless of currently bound FBO
Brian Paul [Fri, 2 Jun 2006 12:51:56 +0000 (12:51 +0000)]
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO

18 years agofix depth-format rectangular textures
Brian Paul [Fri, 2 Jun 2006 12:47:42 +0000 (12:47 +0000)]
fix depth-format rectangular textures

18 years agofix depth-component test to allow rectangular textures
Brian Paul [Fri, 2 Jun 2006 12:46:53 +0000 (12:46 +0000)]
fix depth-component test to allow rectangular textures

18 years agoremove code dealing with drmMinor version < 6 since all radeon drivers request at...
Roland Scheidegger [Fri, 2 Jun 2006 01:52:54 +0000 (01:52 +0000)]
remove code dealing with drmMinor version < 6 since all radeon drivers request at least drmMinor 6 anyway.

18 years agoretry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention...
Roland Scheidegger [Thu, 1 Jun 2006 23:21:43 +0000 (23:21 +0000)]
retry on EBUSY instead of EAGAIN in radeonWaitIrq (it appears this was the intention as drm seems to never return EAGAIN) in all radeon drivers.

18 years agoFix extended swizzling in vertex programs by introducing special swizzle instruction...
Roland Scheidegger [Thu, 1 Jun 2006 22:56:40 +0000 (22:56 +0000)]
Fix extended swizzling in vertex programs by introducing special swizzle instruction, extend the 2 bit rsw field to 3 bit like used in other places. While here, also fix up rsw (negation), dph and try to fix up rsq with negative values (doesn't work, bug seems elsewhere) in the sse codegen code.

18 years agodocument MESA_TEX/TNL_PROG env vars
Brian Paul [Thu, 1 Jun 2006 20:22:30 +0000 (20:22 +0000)]
document MESA_TEX/TNL_PROG env vars

18 years agofix extension_supported() function, added comments
Brian Paul [Wed, 31 May 2006 20:36:52 +0000 (20:36 +0000)]
fix extension_supported() function, added comments

18 years agoSWZ is nearly identical to MOV. the difference is that SWZ supports per-component...
Tilman Sauerbeck [Wed, 31 May 2006 17:57:14 +0000 (17:57 +0000)]
SWZ is nearly identical to MOV. the difference is that SWZ supports per-component negation, which MOV doesn't. as that's handled transparently, we can use the same code for them.

18 years agopass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's...
Tilman Sauerbeck [Wed, 31 May 2006 17:37:23 +0000 (17:37 +0000)]
pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's VSF_FLAGs now

18 years agoUpdated config file.
Claudio Ciccani [Wed, 31 May 2006 17:06:05 +0000 (17:06 +0000)]
Updated config file.

18 years agoAdded some example progs using DirectFBGL.
Claudio Ciccani [Wed, 31 May 2006 17:05:11 +0000 (17:05 +0000)]
Added some example progs using DirectFBGL.

18 years agoAdded DirectFB GLUT implementation.
Claudio Ciccani [Wed, 31 May 2006 17:02:45 +0000 (17:02 +0000)]
Added DirectFB GLUT implementation.

18 years agoFixed bug with multiple contexts.
Claudio Ciccani [Wed, 31 May 2006 17:00:10 +0000 (17:00 +0000)]
Fixed bug with multiple contexts.
Added support for ARGB4444 and ARGB2554.
Added hardware accelerated Clear().

18 years agofix bug 7077 - mem leak
Brian Paul [Tue, 30 May 2006 22:26:21 +0000 (22:26 +0000)]
fix bug 7077 - mem leak

18 years agoDefine new NEGATE_* tokens for setting the src register's NegateBase field.
Brian Paul [Tue, 30 May 2006 22:17:35 +0000 (22:17 +0000)]
Define new NEGATE_* tokens for setting the src register's NegateBase field.
Before, we were using GL_TRUE/GL_FALSE in a few places.
Note: only the SWZ instruction can negate individual components.

18 years agoremove redundant 'const'
Brian Paul [Tue, 30 May 2006 22:15:24 +0000 (22:15 +0000)]
remove redundant 'const'

18 years agofree convolved image / fix mem leak (bug 7077)
Brian Paul [Tue, 30 May 2006 21:58:55 +0000 (21:58 +0000)]
free convolved image / fix mem leak (bug 7077)

18 years agominor code cleanup, no actual changes
Tilman Sauerbeck [Tue, 30 May 2006 18:49:20 +0000 (18:49 +0000)]
minor code cleanup, no actual changes

18 years agodon't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which...
Tilman Sauerbeck [Tue, 30 May 2006 16:57:52 +0000 (16:57 +0000)]
don't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which is actually handled

18 years agoAdd x86sse.h.
Michal Krol [Tue, 30 May 2006 09:59:05 +0000 (09:59 +0000)]
Add x86sse.h.

18 years agoRemove not needed forward declaration.
Michal Krol [Tue, 30 May 2006 09:45:33 +0000 (09:45 +0000)]
Remove not needed forward declaration.

18 years agoMake it running under Linux.
Michal Krol [Tue, 30 May 2006 09:38:16 +0000 (09:38 +0000)]
Make it running under Linux.

18 years agoFirst draft.
Michal Krol [Tue, 30 May 2006 09:35:36 +0000 (09:35 +0000)]
First draft.

18 years agodon't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in...
Tilman Sauerbeck [Mon, 29 May 2006 16:24:28 +0000 (16:24 +0000)]
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in parse_generic_attrib_num()

18 years agogeneric attribute 0 wasn't handled correctly (Jesse Allen)
Brian Paul [Mon, 29 May 2006 14:37:56 +0000 (14:37 +0000)]
generic attribute 0 wasn't handled correctly (Jesse Allen)

18 years agofix some whitespace in previous commit
Roland Scheidegger [Sat, 27 May 2006 09:09:56 +0000 (09:09 +0000)]
fix some whitespace in previous commit

18 years agopreparation for r200 hw vertex programs. Increase R200_CMD_BUF_SZ to 16k instead...
Roland Scheidegger [Sat, 27 May 2006 09:03:25 +0000 (09:03 +0000)]
preparation for r200 hw vertex programs. Increase R200_CMD_BUF_SZ to 16k instead of 8k (the reasons why it was exactly 8k are unclear). Add register defines, sanity code, fix potential issue with wrong statechange order when disabling fragment programs.

18 years agoThe ctx->_TexEnvProgram that's allocated in update_state() doesn't seem to
Brian Paul [Wed, 24 May 2006 03:34:17 +0000 (03:34 +0000)]
The ctx->_TexEnvProgram that's allocated in update_state() doesn't seem to
be needed (it's set in texenvprogram.c) and is a memory leak according to
valgrind.
Disable with #if 0 / #endif

18 years agoRoll _mesa_free_parameters() into calling function (the only caller).
Brian Paul [Wed, 24 May 2006 03:30:31 +0000 (03:30 +0000)]
Roll _mesa_free_parameters() into calling function (the only caller).
Replace assert(0) with _mesa_warning().
Use new _mesa_align_realloc() function.
New comments, clean-ups.

18 years agofix a small memory leak in _mesa_add_state_reference()
Brian Paul [Wed, 24 May 2006 03:25:22 +0000 (03:25 +0000)]
fix a small memory leak in _mesa_add_state_reference()

18 years agoadded _mesa_align_realloc()
Brian Paul [Wed, 24 May 2006 03:15:46 +0000 (03:15 +0000)]
added _mesa_align_realloc()

18 years agouse GLbitfield for StateFlags, improved comments
Brian Paul [Wed, 24 May 2006 03:01:58 +0000 (03:01 +0000)]
use GLbitfield for StateFlags, improved comments

18 years agoAdd const qualifiers in a number of places.
Brian Paul [Tue, 23 May 2006 02:44:46 +0000 (02:44 +0000)]
Add const qualifiers in a number of places.

18 years agoinit mask=0 to silence warning
Brian Paul [Tue, 23 May 2006 02:16:20 +0000 (02:16 +0000)]
init mask=0 to silence warning

18 years agomake mgaSetFence() and mgaWaitFence() static
Brian Paul [Tue, 23 May 2006 02:13:53 +0000 (02:13 +0000)]
make mgaSetFence() and mgaWaitFence() static

18 years agoprototype i915_udpate_fog() to silence warning
Brian Paul [Tue, 23 May 2006 02:12:08 +0000 (02:12 +0000)]
prototype i915_udpate_fog() to silence warning

18 years agoIn cache_item(), there was sizeof(void) expression.
Brian Paul [Tue, 23 May 2006 01:55:31 +0000 (01:55 +0000)]
In cache_item(), there was sizeof(void) expression.
Replace void *key parameter with const struct state_key *

18 years agoGL_INDEX_OFFSET fix
Brian Paul [Mon, 22 May 2006 17:41:59 +0000 (17:41 +0000)]
GL_INDEX_OFFSET fix

18 years agoGL_INDEX_OFFSET didn't work with CI->RGB mappings.
Brian Paul [Mon, 22 May 2006 17:40:07 +0000 (17:40 +0000)]
GL_INDEX_OFFSET didn't work with CI->RGB mappings.
Added some const qualifiers.

18 years agomemory usage fixes for glean/conform, use a better hash function
Keith Whitwell [Mon, 22 May 2006 16:09:27 +0000 (16:09 +0000)]
memory usage fixes for glean/conform, use a better hash function

18 years agoFix typo
Keith Whitwell [Mon, 22 May 2006 14:30:58 +0000 (14:30 +0000)]
Fix typo

18 years agoBetter caching for texenv programs.
Keith Whitwell [Mon, 22 May 2006 14:17:32 +0000 (14:17 +0000)]
Better caching for texenv programs.
Initialize some values correctly.

18 years agoSpeedup the venerable mm.[ch] allocator with doubly linked lists and a
Keith Whitwell [Mon, 22 May 2006 12:32:35 +0000 (12:32 +0000)]
Speedup the venerable mm.[ch] allocator with doubly linked lists and a
separate list of free segments.

18 years agoIn gl_texture_image, replace ImageStride with an ImageOffsets array.
Brian Paul [Sat, 20 May 2006 16:19:48 +0000 (16:19 +0000)]
In gl_texture_image, replace ImageStride with an ImageOffsets array.
Some hardware lays out 3D mipmaps in a manner that can't be expressed
with a simple image stride.
The ImageOffsets array is allocated and initialized to typical defaults
in the _mesa_init_teximage_fields() function.  If needed, a driver will
then have to replace these offsets.
TexStore and TexelFetch routines updated to use offsets array.

18 years agoglxinfo -l expanded, fixed bug 6863
Brian Paul [Sat, 20 May 2006 15:18:23 +0000 (15:18 +0000)]
glxinfo -l expanded, fixed bug 6863

18 years agoremove some redundant functions, fix-up reference counting
Brian Paul [Sat, 20 May 2006 15:16:45 +0000 (15:16 +0000)]
remove some redundant functions, fix-up reference counting

18 years agouse new _mesa_remove_renderbuffer()
Brian Paul [Sat, 20 May 2006 15:12:42 +0000 (15:12 +0000)]
use new _mesa_remove_renderbuffer()

18 years agouse new _mesa_dereference_frame/renderbuffer() functions
Brian Paul [Sat, 20 May 2006 15:08:25 +0000 (15:08 +0000)]
use new _mesa_dereference_frame/renderbuffer() functions

18 years agoAdded _mesa_remove_renderbuffer() as a counterpart to _mesa_add_renderbuffer().
Brian Paul [Sat, 20 May 2006 15:07:32 +0000 (15:07 +0000)]
Added _mesa_remove_renderbuffer() as a counterpart to _mesa_add_renderbuffer().
Added _mesa_dereference_renderbuffer() to encapsulate renderbuffer
reference count decrement, delete, locking.

18 years agoAdded _mesa_dereference_framebuffer() to encapsulate reference count
Brian Paul [Sat, 20 May 2006 15:06:35 +0000 (15:06 +0000)]
Added _mesa_dereference_framebuffer() to encapsulate reference count
decrement, delete and locking.

18 years agosome new comments
Brian Paul [Fri, 19 May 2006 17:31:09 +0000 (17:31 +0000)]
some new comments

18 years agoremove an assertion
Brian Paul [Fri, 19 May 2006 17:27:33 +0000 (17:27 +0000)]
remove an assertion

18 years agoprint 2D vs 3D in window
Brian Paul [Fri, 19 May 2006 16:48:42 +0000 (16:48 +0000)]
print 2D vs 3D in window

18 years agoalso test 3D textures (press '2'/'3' to toggle)
Brian Paul [Fri, 19 May 2006 16:42:01 +0000 (16:42 +0000)]
also test 3D textures (press '2'/'3' to toggle)

18 years agoadded some CHAN_BITS tests
Brian Paul [Fri, 19 May 2006 03:49:13 +0000 (03:49 +0000)]
added some CHAN_BITS tests

18 years agoreplace FORMAT var with RB_TYPE
Brian Paul [Fri, 19 May 2006 03:47:16 +0000 (03:47 +0000)]
replace FORMAT var with RB_TYPE

18 years agoDemonstrate rendering 8, 16 and 32-bit/channel images all in one program.
Brian Paul [Fri, 19 May 2006 03:43:39 +0000 (03:43 +0000)]
Demonstrate rendering 8, 16 and 32-bit/channel images all in one program.
Like older osdemo.c program, but test more OpenGL features like texturing,
blending, lines.

18 years agoupdated docs for off-screen rendering
Brian Paul [Fri, 19 May 2006 03:42:16 +0000 (03:42 +0000)]
updated docs for off-screen rendering

18 years agoAllow rendering 8, 16 and 32-bit/channel images without recompiling.
Brian Paul [Fri, 19 May 2006 03:41:37 +0000 (03:41 +0000)]
Allow rendering 8, 16 and 32-bit/channel images without recompiling.
Uses new renderbuffer adaptors.

18 years agoinstall renderbuffer adaptors when color channel sizes need to be reduced
Brian Paul [Fri, 19 May 2006 03:40:29 +0000 (03:40 +0000)]
install renderbuffer adaptors when color channel sizes need to be reduced

18 years agoadded rbadaptors.[ch] files
Brian Paul [Fri, 19 May 2006 03:37:41 +0000 (03:37 +0000)]
added rbadaptors.[ch] files

18 years agoadded rbadaptors.c
Brian Paul [Fri, 19 May 2006 03:35:38 +0000 (03:35 +0000)]
added rbadaptors.c

18 years agoRenderbuffer adaptors.
Brian Paul [Fri, 19 May 2006 03:33:50 +0000 (03:33 +0000)]
Renderbuffer adaptors.
When compiling Mesa with CHAN_BITS=16 or 32, these adaptors allow rendering
into color buffers with smaller channel sizes.

18 years agominor simplification
Brian Paul [Thu, 18 May 2006 22:31:19 +0000 (22:31 +0000)]
minor simplification

18 years agotexture EnvColor needs to be converted to GLchan, not GLint
Brian Paul [Thu, 18 May 2006 22:11:09 +0000 (22:11 +0000)]
texture EnvColor needs to be converted to GLchan, not GLint

18 years agoDont allow 16 tex units to be used at all.
Aapo Tahkola [Thu, 18 May 2006 21:15:26 +0000 (21:15 +0000)]
Dont allow 16 tex units to be used at all.

18 years agouse -march=i486 instead of -m486 (bug 6954)
Brian Paul [Thu, 18 May 2006 17:04:13 +0000 (17:04 +0000)]
use -march=i486 instead of -m486 (bug 6954)

18 years agochange initialization of texcoords - not all C compilers support non-constant array...
Brian Paul [Thu, 18 May 2006 14:16:43 +0000 (14:16 +0000)]
change initialization of texcoords - not all C compilers support non-constant array initializers

18 years agoadd extra APP_LIB_DEPS (bug 6954)
Brian Paul [Thu, 18 May 2006 13:55:31 +0000 (13:55 +0000)]
add extra APP_LIB_DEPS (bug 6954)

18 years agoadded solaris-x86-gcc-static
Brian Paul [Wed, 17 May 2006 22:51:44 +0000 (22:51 +0000)]
added solaris-x86-gcc-static

18 years agogenerate shared lib, not static
Brian Paul [Wed, 17 May 2006 22:51:23 +0000 (22:51 +0000)]
generate shared lib, not static

18 years agoformerly known as solaris-x86-gcc
Brian Paul [Wed, 17 May 2006 22:51:08 +0000 (22:51 +0000)]
formerly known as solaris-x86-gcc

18 years agocall reshape() after init() to set initial projection/viewing transform (see bug...
Brian Paul [Wed, 17 May 2006 22:44:18 +0000 (22:44 +0000)]
call reshape() after init() to set initial projection/viewing transform (see bug 6941)

18 years agounbreak the build
Tilman Sauerbeck [Wed, 17 May 2006 16:39:40 +0000 (16:39 +0000)]
unbreak the build

18 years agoadd texture rectangle support for i815, I wrote the original patch about
Dave Airlie [Wed, 17 May 2006 06:26:25 +0000 (06:26 +0000)]
add texture rectangle support for i815, I wrote the original patch about
2 years ago, I finally dug out an i815 and got it working

18 years agobug 6941: fixed initial rendering problems in glxgears
Tilman Sauerbeck [Tue, 16 May 2006 16:27:54 +0000 (16:27 +0000)]
bug 6941: fixed initial rendering problems in glxgears

18 years agoFix typo.
Michal Krol [Tue, 16 May 2006 10:37:16 +0000 (10:37 +0000)]
Fix typo.

18 years agoAdd functions.
Michal Krol [Tue, 16 May 2006 10:11:29 +0000 (10:11 +0000)]
Add functions.

18 years agoWrite attribs to slang machine.
Michal Krol [Tue, 16 May 2006 10:10:56 +0000 (10:10 +0000)]
Write attribs to slang machine.

18 years agoChange error message wording.
Michal Krol [Tue, 16 May 2006 10:10:10 +0000 (10:10 +0000)]
Change error message wording.

18 years agoRename print() to printMESA().
Michal Krol [Tue, 16 May 2006 10:09:32 +0000 (10:09 +0000)]
Rename print() to printMESA().

18 years agoFix attrib handling.
Michal Krol [Tue, 16 May 2006 10:08:30 +0000 (10:08 +0000)]
Fix attrib handling.

18 years agoExtend printMESA function to output also to shader's info log.
Michal Krol [Tue, 16 May 2006 10:04:24 +0000 (10:04 +0000)]
Extend printMESA function to output also to shader's info log.
Fix float-to-int conversion for x86 back-end.

18 years agoCleanup code. Change constructor prototype.
Michal Krol [Tue, 16 May 2006 10:01:07 +0000 (10:01 +0000)]
Cleanup code. Change constructor prototype.

18 years agoCleanup code.
Michal Krol [Tue, 16 May 2006 09:53:42 +0000 (09:53 +0000)]
Cleanup code.

18 years agoChange constructor prototype.
Michal Krol [Tue, 16 May 2006 09:52:02 +0000 (09:52 +0000)]
Change constructor prototype.
Fix struct field accessing.

18 years agoRemove carriage returns.
Michal Krol [Tue, 16 May 2006 09:44:08 +0000 (09:44 +0000)]
Remove carriage returns.

18 years agoAdd GetInfoLogLength and WriteAttrib functions.
Michal Krol [Tue, 16 May 2006 09:43:09 +0000 (09:43 +0000)]
Add GetInfoLogLength and WriteAttrib functions.
GetInfoLog for shaders if different - it is a concatenation
of compiler output and executor output produced by printMESA.
Fix bugs.

18 years agoCleanup GLhandle-to-object translation macros.
Michal Krol [Tue, 16 May 2006 09:40:30 +0000 (09:40 +0000)]
Cleanup GLhandle-to-object translation macros.
Fix minor bugs.

18 years agoGLSL regression test suite.
Michal Krol [Tue, 16 May 2006 09:32:30 +0000 (09:32 +0000)]
GLSL regression test suite.

18 years agoadded a few extension #ifdef tests
Brian Paul [Mon, 15 May 2006 15:35:38 +0000 (15:35 +0000)]
added a few extension #ifdef tests

18 years agoAdded a check_context_limits() function that checks that the ctx->Const.*
Brian Paul [Mon, 15 May 2006 15:26:04 +0000 (15:26 +0000)]
Added a check_context_limits() function that checks that the ctx->Const.*
fields are legal.  May catch some driver development bugs.
Called the first time a context is bound.

18 years agousage() function
Brian Paul [Mon, 15 May 2006 15:14:37 +0000 (15:14 +0000)]
usage() function

18 years agoremove some unused macros
Brian Paul [Sun, 14 May 2006 16:42:20 +0000 (16:42 +0000)]
remove some unused macros