Brian
a614877592
In _mesa_make_current(), don't unbind FBOs from the old context.
...
This fixes the X server crash reported by KeithP on Aug 29.
The old context's FBOs will be unreferenced during context destruction so
there's no memleak with this change.
2007-09-11 10:59:59 -06:00
Brian
995e01a6bc
Update depth test state when binding new framebuffer object
2007-09-11 09:23:13 -06:00
Brian
0c43ab6fbc
fix comment
2007-09-11 09:23:13 -06:00
Jesse Barnes
7f6decf3e4
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
2007-09-11 03:55:40 -07:00
Jesse Barnes
78b7e49c84
intel: disentangle planes & pipes
...
This is the Mesa portion of the pipe & plane disambiguation. Mesa needs to use
the new assumptions about plane vs. pipe mappings and should use the new SAREA
field names to avoid confusion.
2007-09-11 03:54:34 -07:00
Xiang, Haihao
0aedb9a204
i965: take the secondary color into account when drawing
...
bitmap. fix#10688
2007-09-11 16:57:07 +08:00
Xiang, Haihao
241b7bc0a3
i965: limit on LOD Bias, fix#11987
2007-09-11 16:49:02 +08:00
Brian
5620d66e36
vertex feedback functions
2007-09-10 17:02:58 -06:00
Brian
6275b40063
merge buffer_unreference(), buffer_reference()
2007-09-10 16:52:05 -06:00
Brian
051a2a3028
clean-ups, comments
2007-09-10 16:35:16 -06:00
Brian
c3f7f3124a
s/xm_softpipe.c/xm_winsys.c/
2007-09-10 16:32:24 -06:00
Brian
b06641eb4a
Rename
2007-09-10 16:31:24 -06:00
Brian
d56a3adc30
More work on vertex feedback / glRasterPos. Basic rasterpos works now.
2007-09-10 16:29:23 -06:00
Brian
b2dfe2be6c
added st_cb_rasterpos.c
2007-09-10 16:28:39 -06:00
Brian
bee148cb7d
plug in rasterpos/feedback code
2007-09-10 16:28:27 -06:00
Brian
bb193c6d22
glRasterPos function
2007-09-10 16:28:10 -06:00
Brian
21c925f491
move FLUSH_CURRENT
2007-09-10 16:27:07 -06:00
Brian
24cd84162e
clean-up (see bug 12317)
2007-09-10 08:37:09 -06:00
Brian
63a51aee86
Initial work for post-transformed vertex feedback buffers.
...
This will be used for:
GL_NV_transform_feedback, or similar GL3 functionality
glRasterPos
GL selection/feedback modes
2007-09-06 17:07:09 -06:00
Brian
41ddd76b98
Initial work for post-transform vertex feedback buffers.
...
This will be used for:
GL_NV_transform_feedback, or GL3 equivalent.
RasterPos
GL select/feedback modes
2007-09-06 17:03:54 -06:00
Brian
4c01d498fa
Move guts of glRasterPos down into T&L module.
2007-09-06 17:02:07 -06:00
Patrice Mandin
249ca55555
nouveau: nv10: check NULL pointers
2007-09-06 22:36:12 +02:00
Patrice Mandin
15a6bf9118
nouveau: init depth range
2007-09-06 22:33:22 +02:00
Brian
f2f168d0f8
Move guts of glRasterPos into tnl module, called via new ctx->Driver.RasterPos() function.
2007-09-06 14:26:35 -06:00
Patrice Mandin
7307ff80c9
nouveau: nv10: replace macros by loop to set vertex attributes
2007-09-06 20:00:25 +02:00
Patrice Mandin
8f9b9ac387
nouveau: need parenthesis around macro params, generator should be fixed
2007-09-06 19:58:59 +02:00
Patrice Mandin
a956184f70
Disable an assert for hw that do not emit POS as first vertex attrib, like nv1x
2007-09-06 19:12:58 +02:00
Patrice Mandin
db9f97e2ae
nouveau: nv10: emit vertex data in proper order for nv1x hw
2007-09-05 23:37:18 +02:00
Brian
9ceff4ac4c
updated bug report guidelines
2007-09-05 10:04:37 -06:00
Christoph Kubisch
8822069e71
updated VC7 project files
2007-09-05 10:04:37 -06:00
Xiang, Haihao
1a15b2169b
i965: only take non-varying attribute into account when
...
compiling sf_prog. fix bug#11378 (which is introduced by
commit d619cceea4 )
2007-09-05 13:31:01 +08:00
Stephane Marchesin
8752a20dec
nouveau: who needs nv03 ?
2007-09-04 23:21:21 +02:00
Patrice Mandin
ece08b7fd9
nouveau: nv10: need to transpose mesa model+proj matrix for hw
2007-09-04 19:17:06 +02:00
Brian
c2e1ee08b0
Use temporary matrix in __gluInvertMatrixd() to fix aliasing problem (see bugs 12269, 6748)
2007-09-03 16:22:14 -06:00
Patrice Mandin
2f8ff58c0e
nouveau: nv10: forgot function to set modelview matrix
2007-09-03 23:42:33 +02:00
Patrice Mandin
c45bb05b3c
nouveau: separate modelview and projection matrix updates
2007-09-03 23:10:55 +02:00
Xiang, Haihao
cb7da3f096
i965: Correct build_lighting in i965 driver according to
...
commit 6dd98e9853 .
2007-09-01 15:43:15 +08:00
Brian
6dd98e9853
Fix problem introduced in previous commit in which a state variable (uniform) is written to. (see bug 12239)
...
Also, added some assertions to the emit_arg() and emit_dst() functions to
catch this kind of error in the future.
2007-08-31 16:42:05 -06:00
Patrice Mandin
47768ce0e5
nouveau: nv10: remove setting projection matrix when scaling viewport
2007-08-31 19:46:39 +02:00
Patrice Mandin
b0a1e81887
nouveau: add hw-dependent function to update modelview*projection matrix
2007-08-31 19:46:39 +02:00
Brian
9a11a4a8b4
move some protos from draw_vertex.h to draw_private.h
2007-08-31 11:28:31 -06:00
Brian
2e21058e3d
Define attrib_format and interp_mode enum typedefs and use where appropriate.
2007-08-31 11:27:16 -06:00
Xiang, Haihao
214347fdb4
i965: Calculate the positional light in homogeneous coordinates.
...
fix bug#11009
2007-08-31 16:50:48 +08:00
Zou Nan hai
b47c9f8c91
optimize 965 clip
...
1. increase clip thread number to 2
2. do cliptest for -rhw
2007-08-31 13:42:20 +08:00
Xiang, Haihao
22bc3cdd49
i965: Take the upper limitation on LOD into account.
2007-08-31 12:51:36 +08:00
Brian
898d68a376
Consolidate vertex-related code in new draw_vertex.c
...
A few functions which were basically duplicated between softpipe and the
i915 driver are now re-used:
draw_emit_vertex_attr()
draw_compute_vertex_size()
2007-08-30 16:49:24 -06:00
Brian
963b8a7449
Remove dependency on TGSI_ATTRIB_x tokens in draw_twoside.c
...
Added a new draw_set_twoside_attributes() function for specifying which
vertex attributes are to be copied/replaced when a polygon is back-facing.
2007-08-30 16:37:56 -06:00
Brian
c9e133eab4
fix breakage from prev commit
2007-08-30 16:04:10 -06:00
Brian
8f1a0decad
fix unhandled switch/case warning
2007-08-30 16:01:23 -06:00
David Moore
1dd94a63ac
Bug #10571 : Fix 965 line clipping when neither vertex needs clipping.
2007-08-30 14:45:56 -07:00