Aapo Tahkola
37474eca68
prevent possible program mix up with sw vps (Roland Scheidegger)
hace 19 años
Aapo Tahkola
9248882ca2
prevent run_arb_vertex_program from running tnl programs unless ctx->_MaintainTnlProgram is set
hace 19 años
Aapo Tahkola
9ba2006594
make sure tex format is supported.
hace 19 años
Aapo Tahkola
2f42558050
various fixes (Roland Scheidegger)
hace 19 años
Brian Paul
4cb9fffa7e
Added simple lookup_bufferobj() function to wrap the _mesa_HashLookup() call
and cast. Simplifies the code a little bit elsewhere.
hace 19 años
Brian Paul
3696f0ee1d
updates for using libdrm (Hanno Bock)
hace 19 años
Brian Paul
6f172f7aba
minor clean-ups
hace 19 años
Roland Scheidegger
98c791b543
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.
hace 19 años
Brian Paul
65ced47453
Thomas Sondergaard's API tracer
hace 19 años
Brian Paul
21fbdb14e9
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO
hace 19 años
Brian Paul
79d8db77b9
fix depth-format rectangular textures
hace 19 años
Brian Paul
2b04dd9d2c
fix depth-component test to allow rectangular textures
hace 19 años
Roland Scheidegger
b302419abe
remove code dealing with drmMinor version < 6 since all radeon drivers request at least drmMinor 6 anyway.
hace 19 años
Roland Scheidegger
5377ac80dc
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.
hace 19 años
Roland Scheidegger
fe57ed4f25
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.
hace 19 años
Brian Paul
4d3ab19abf
document MESA_TEX/TNL_PROG env vars
hace 19 años
Brian Paul
1ec9b5a5a9
fix extension_supported() function, added comments
hace 19 años
Tilman Sauerbeck
e689a7fc6a
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.
hace 19 años
Tilman Sauerbeck
49db174df5
pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's VSF_FLAGs now
hace 19 años
Claudio Ciccani
9efe17ed91
Updated config file.
hace 19 años
Claudio Ciccani
fe94d0b335
Added some example progs using DirectFBGL.
hace 19 años
Claudio Ciccani
b18191cf30
Added DirectFB GLUT implementation.
hace 19 años
Claudio Ciccani
9400550c16
Fixed bug with multiple contexts.
Added support for ARGB4444 and ARGB2554.
Added hardware accelerated Clear().
hace 19 años
Brian Paul
55ad3cc055
fix bug 7077 - mem leak
hace 19 años
Brian Paul
a8c4242395
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.
hace 19 años
Brian Paul
e4cb9cd167
remove redundant 'const'
hace 19 años
Brian Paul
8333012b56
free convolved image / fix mem leak (bug 7077)
hace 19 años
Tilman Sauerbeck
1d0fa45bc1
minor code cleanup, no actual changes
hace 19 años
Tilman Sauerbeck
6be8127ea4
don't generate GL_INVALID_ENUM if GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB, which is actually handled
hace 19 años
Michal Krol
51fec69ea6
Add x86sse.h.
hace 19 años
Michal Krol
4decba90be
Remove not needed forward declaration.
hace 19 años
Michal Krol
23b7c7dc14
Make it running under Linux.
hace 19 años
Michal Krol
44d5c8668a
First draft.
hace 19 años
Tilman Sauerbeck
b20cdf1d28
don't do the check for >= MAX_VERTEX_PROGRAM_ATTRIBS twice, it's already done in parse_generic_attrib_num()
hace 19 años
Brian Paul
919f6a070c
generic attribute 0 wasn't handled correctly (Jesse Allen)
hace 19 años
Roland Scheidegger
76b6e88e56
fix some whitespace in previous commit
hace 19 años
Roland Scheidegger
8a61821057
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.
hace 19 años
Brian Paul
04fa003a50
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
hace 19 años
Brian Paul
65a51c0d62
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.
hace 19 años
Brian Paul
5a67af97fa
fix a small memory leak in _mesa_add_state_reference()
hace 19 años
Brian Paul
1798d9a8a4
added _mesa_align_realloc()
hace 19 años
Brian Paul
0c1cbd5805
use GLbitfield for StateFlags, improved comments
hace 19 años
Brian Paul
d9736db667
Add const qualifiers in a number of places.
hace 19 años
Brian Paul
f5a2ac95c3
init mask=0 to silence warning
hace 19 años
Brian Paul
fe9026d04a
make mgaSetFence() and mgaWaitFence() static
hace 19 años
Brian Paul
a6f7f10efa
prototype i915_udpate_fog() to silence warning
hace 19 años
Brian Paul
b8f2f6fee1
In cache_item(), there was sizeof(void) expression.
Replace void *key parameter with const struct state_key *
hace 19 años
Brian Paul
acc9566b86
GL_INDEX_OFFSET fix
hace 19 años
Brian Paul
17befff800
GL_INDEX_OFFSET didn't work with CI->RGB mappings.
Added some const qualifiers.
hace 19 años
Keith Whitwell
8065c120c4
memory usage fixes for glean/conform, use a better hash function
hace 19 años