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
Brian
050837045f
more usage info
2007-08-30 14:44:40 -06:00
Brian
f726ffd060
test flat shading w/ clipping
2007-08-30 14:43:59 -06:00
Brian
942b9bc5bc
In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors to cpy.
...
One less dependency on the TGSI_ATTRIB_x flags.
This requires setting the vertex_info->interp_mode[] values in the i915 driver and passing them to draw_set_vertex_attributes().
2007-08-30 14:43:08 -06:00
Brian
aaf03b9486
Fix lost edge flags problem when clipping.
...
In emit_poly() we need to compute header.edgeflags from the vertex
edge flags. Also need to set header.det so later stages can determine
front/back orientation.
2007-08-30 14:43:08 -06:00
Brian
2d187672b7
Sketch out per-vertex point size.
...
The code is all in place, but mostly disabled for now:
In t_vp_build.c, write the VERT_RESULT_PSIZE register
In sp_state_derived.c, need to emit vertex point size if drawing points.
In setup_point() use the point size from the vertex.
2007-08-30 14:43:08 -06:00
Roland Scheidegger
74e1d0996d
fix another occurence of movaps which might not be aligned
2007-08-30 18:04:49 +02:00
Brian
3b7df51eb5
s/movaps/movups/ (see bug 12216)
2007-08-30 08:41:38 -06:00
michal
e62b9241d2
Add p_compiler.h.
2007-08-29 22:35:28 +01:00
michal
a6e2b76fb5
Break GL dependencies.
2007-08-29 22:35:28 +01:00
michal
6468e68466
Break GL dependencies.
2007-08-29 22:35:28 +01:00
michal
86fe5f235b
Break GL dependencies.
2007-08-29 22:35:28 +01:00
michal
529c411e40
Break GL dependencies.
2007-08-29 22:35:28 +01:00
michal
5c337508fe
Fix ffs().
2007-08-29 22:35:28 +01:00
Xiang, Haihao
bad6e175cf
i965: store read drawable info in intel_context. Some OpenGL
...
operations are based on read drawable. fix bug#10136.
2007-08-29 15:11:10 -04:00
Xiang, Haihao
f6a89e1884
i965: check NULL pointer. fix bug#12193
2007-08-29 13:03:34 -04:00
Xiang, Haihao
410d8f7cdb
i965: samplers group in fours in WM_STATE. fix bug#9415
2007-08-29 10:13:10 -04:00
Keith Packard
500193dca8
Add register defines for hw binning
2007-08-28 12:27:51 -07:00
Xiang, Haihao
c235cc71a2
i965: flush batch buffer when getting the maximum. This makes
...
some 3D programs such as pymol work well.
2007-08-28 11:35:52 -04:00
Keith Whitwell
874b926560
Split out vertex shader/cache/fetch functionality from draw_prim.c
2007-08-27 19:30:11 +01:00
Brian
3a484cd794
added --noclear option to demonstrate rendering without glClear
2007-08-27 12:00:19 -06:00
Colin McDonald
d62be3d4ca
fixed problem with big glDrawArrays (see bug 12141)
2007-08-27 10:47:32 -06:00
Brian
f0a036bad9
new __gluInvertMatrix() function (Mesa bug 6748)
2007-08-27 10:36:11 -06:00
Patrice Mandin
c28ea5573d
nouveau: nv10: set total stride of vertex array for POS attribute
2007-08-27 11:45:30 +02:00
keithw
b0455958cc
add missing files
2007-08-25 22:05:16 +01:00
keithw
3f8b5e3951
fix frag vs vertex typo
2007-08-25 22:01:32 +01:00
keithw
4185da4681
add names to tracked state atoms to improve debug
2007-08-25 22:01:32 +01:00
Keith Whitwell
07d97e80e6
checkpoint in constant tracking rework
2007-08-25 22:01:32 +01:00
keithw
599ba515f9
remove unneeded dirty flag
2007-08-25 22:01:32 +01:00
Patrice Mandin
24967c8646
nouveau: nv10: also set modelview0 matrix to identity
2007-08-25 17:46:53 +02:00
Patrice Mandin
40ecc4a359
nouveau: nv10: add a scissor func, do not cache viewport settings
2007-08-25 12:36:03 +02:00
Patrice Mandin
1a911aad0a
nouveau: nv10: properly set viewport and projection
2007-08-25 11:39:04 +02:00
Brian
def8bb784c
code re-org, minor improvements
2007-08-24 19:36:23 -06:00
Brian
b4a8175da0
s/==/=/
2007-08-24 18:50:56 -06:00
Brian
703140bbd5
Fix fragment program color output mapping (0=depth, 1=color)
2007-08-24 18:26:42 -06:00
Brian
29dc25bcfe
check for USE_X86_ASM or SLANG_X86 in st_delete_program()
2007-08-24 18:19:50 -06:00
Brian
b7de64c46c
set I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv
2007-08-24 18:08:23 -06:00
Brian
59e7bfa1de
Add support for more surface types in sp_surface.c
...
replace PIPE_FORMAT_U_L8_A8 with PIPE_FORMAT_U_A8_L8
2007-08-24 18:08:23 -06:00
michal
4fd7bc00f0
Hook-up SSE2 to VS.
2007-08-24 17:51:12 +01:00
michal
2c7b74725b
Indent. Remove GL dependencies. Simplify. Add rtasm instructions.
2007-08-24 16:23:02 +01:00
michal
b5c14b36ad
Add tgsi_sse2.
2007-08-24 12:53:19 +01:00
Brian
cd93682530
remove deleted i915_state_fragprog.c
2007-08-24 12:38:31 -06:00
Brian
57394f3446
fix a tracking of changed lighting state
2007-08-24 12:10:31 -06:00