Brian Paul
94249ca333
remove GetBufferSize = NULL; assignment
2006-11-02 19:23:41 +00:00
Brian Paul
df5edb21f8
Fixes Glean vertex/fragment test failures. Those tests never called
...
glViewport so the viewport was 0 by 0 pixels.
2006-11-02 19:18:09 +00:00
Brian Paul
c97bc619d6
remove GetBufferSize code
2006-11-02 19:16:08 +00:00
Brian Paul
6f676f4871
always load frag prog state params for now (see comments)
2006-11-02 18:35:19 +00:00
Brian Paul
51b115d5ae
remove unneeded extern declaration of lockMutex
2006-11-02 18:15:26 +00:00
Brian Paul
29ed894633
bump driver date
2006-11-02 18:13:40 +00:00
Brian Paul
7a9c7c1133
Use RGBA_LOGICOP_ENABLED() instead of ctx->Color._LogicOpEnabled since we often
...
need to check for this condition before the later field has been computed.
Fixes logicop bug #8860 .
2006-11-02 17:51:04 +00:00
Brian Paul
abc73d9cba
new RGBA_LOGICOP_ENABLED() macro
2006-11-02 17:49:47 +00:00
Brian Paul
12fe1b3a58
s/_mesa_IsProgram2/_mesa_IsProgram/
2006-11-02 16:21:04 +00:00
Brian Paul
f49c0d0dfb
Rename _mesa_IsProgram() to _mesa_IsProgramARB() to avoid collision with the
...
OpenGL 2.0 function of the same name.
2006-11-02 16:20:29 +00:00
Brian Paul
f961d394e3
OpenGL 2.0 entrypoints
2006-11-02 16:11:31 +00:00
Brian Paul
e71e4c9e47
run indent on the code
2006-11-02 16:09:10 +00:00
Brian Paul
036173e0d8
test OpenGL 2.0 stencil funcs
2006-11-02 15:47:30 +00:00
Brian Paul
467c773f79
Add ATI_separate_stencil and use it in preference to EXT_stencil_two_side
...
since the former is what's used for OpenGL 2.0.
2006-11-02 00:41:40 +00:00
Brian Paul
faba58c447
update _mesa_select_tex_image() and _mesa_get_tex_image()
2006-11-01 22:28:54 +00:00
Brian Paul
92c99bc51b
update comments
2006-11-01 20:48:00 +00:00
Brian Paul
a5676795cf
Remove x/y/width/height parameters from Clear functions.
2006-11-01 19:35:22 +00:00
Brian Paul
533e5a73ee
comment-out unused var
2006-11-01 19:26:18 +00:00
Brian Paul
6a92324cf0
remove unused vars
2006-11-01 19:25:43 +00:00
Brian Paul
d972c86876
fix _mesa_select_tex_image() calls
2006-11-01 19:25:19 +00:00
Michal Krol
7d08e3a117
Write back gl_FragDepth to span->array->z.
2006-11-01 19:02:27 +00:00
Brian Paul
9669804fe4
Don't use the x/y/width/height params passed to Clear(). Get them
...
after locking. Next: remove the params altogether.
2006-11-01 18:51:43 +00:00
Brian Paul
26b5904d70
disable debug printf
2006-11-01 18:49:41 +00:00
Brian Paul
4db0c89d25
disable debug printfs
2006-11-01 18:48:28 +00:00
Jerome Glisse
361d137587
Correct a little bug, radeon->glCtx is a pointer.
2006-11-01 16:21:14 +00:00
Jerome Glisse
8d87196c12
Remove deprecated GetBufferSize interface.
2006-11-01 16:18:08 +00:00
Brian Paul
351feae130
recent updates/fixes
2006-11-01 15:24:47 +00:00
Keith Whitwell
57f09b6e5e
fix compiler warnings
2006-11-01 15:23:50 +00:00
Keith Whitwell
8665b828fe
Patch from <haihao.xiang@intel.com> -- pass program string
...
notification callback through to tnl/ module, fixes glean crash.
2006-11-01 15:20:23 +00:00
Keith Whitwell
48e6fff3a9
merge the (rest of) texmem branch
2006-11-01 14:26:10 +00:00
Keith Whitwell
5ac93f8621
Merge texmem-0-3-branch.
2006-11-01 14:21:57 +00:00
Jerome Glisse
232a489b41
Add LIT instruction to fragment program.
2006-11-01 12:03:36 +00:00
Keith Whitwell
6b9e31f3eb
Import texmem i915 driver to its new location as i915tex.
2006-11-01 12:03:11 +00:00
Jerome Glisse
3c6e99ce95
Add CMPH instruction to fragprog
...
CMPH a0, a1, a2 -> if a2 > 0.5 return a1 else return a0
Guessed by examinating LIT instruction handling of FGLRX.
2006-11-01 11:58:16 +00:00
Keith Whitwell
fd60b2d536
Patch from <haihao.xiang@intel.com> -- pass program string
...
notification callback through to tnl/ module, fixes glean crash.
2006-11-01 09:35:26 +00:00
Brian Paul
d106195ad2
change DEBUG_FRAG conditions
2006-11-01 00:14:04 +00:00
Brian Paul
e6f47d1855
fix some bugs in interpolate_specular()
2006-11-01 00:13:16 +00:00
Brian Paul
90fcf6ccc3
Added a few new ctx->Const. fields for shader-related limits.
2006-11-01 00:12:41 +00:00
Brian Paul
5050b565de
make use of Parameters->StateFlags in _swrast_update_fragment_program()
2006-10-31 19:53:38 +00:00
Brian Paul
ef987aa1d7
minor clean-ups, simplifications and new comments
2006-10-31 19:53:03 +00:00
Brian Paul
7e75f51b27
fix MINGW32 problems
2006-10-31 19:14:27 +00:00
Brian Paul
4e9e0aff79
We need to call _mesa_load_state_parameters() whenever a fragment program
...
is enabled and we've changed any GL state that might be referenced by a
fragment program (such as state.fog.params). Do this during swrast
validation, not in _swrast_exec_fragment_program().
2006-10-31 16:02:56 +00:00
Brian Paul
72f49657e8
signal _NEW_LIGHT in _tnl_copy_to_current()
2006-10-31 16:01:11 +00:00
Brian Paul
ecd1743a0c
In TEX instructions, use precomputed lambda only if using fragment.texcoord[k]
...
to sample texture[k]. Use zero otherwise. Not foolproof, but a good
compromise.
2006-10-31 14:29:01 +00:00
Brian Paul
256c96136c
For TEX instructions use lambda=0. When sampling from texture unit K we
...
were using the partial derivatives of texcoord[K] but the coordinate used
for texture sampling may be something totally different (and texcoord[K]
might not be a real texture coord at all). Net result was a bogus LOD is
sometimes used, often resulting in using the smallest mipmap level (a
constant color).
Just use zero for now (undef LAMBDA_ZERO to override).
Plus, some additional debug code.
2006-10-31 01:22:38 +00:00
Ian Romanick
b14bae8466
Fix bug #8799 .
...
Properly resize bith the drawable and the readable in mgaUpdateRects.
Eliminate the use of the deprecated GetBufferSize interface. Bump
driver date.
2006-10-30 23:44:54 +00:00
Ian Romanick
86a465412d
Refactor mgaXMesaSetFrontClipRects and mgaXMesaSetBackClipRects.
...
Combine mgaXMesaSetFrontClipRects and mgaXMesaSetBackClipRects into a
single new function called mga_set_cliprects. This enables a small
refactor in mgaDDDrawBuffer.
2006-10-30 22:17:39 +00:00
Ian Romanick
5af5260f3c
Get DRI drawable from framebuffer object.
...
In the software rasterization fallbacks, get the __DRIdrawablePrivate
pointer from the driRenderbuffer that is passed in. This eliminates
the need for the mesa_drawable pointer in MGA context structure.
This partially fixes bug #8799 . wincopy no longer produces a black
window for the destination window, but it does produce incorrect
results if the destination window is resized.
2006-10-30 22:07:00 +00:00
Brian Paul
075fae5200
code tweaks, remove old comments
2006-10-30 00:22:28 +00:00
Brian Paul
0f8405365f
fix _mesa_problem() text
2006-10-30 00:13:31 +00:00