Commit graph

201327 commits

Author SHA1 Message Date
Keith Whitwell
dc461d8c87 965: count grf allocation correctly for wm prog, first aub triangle 2007-12-19 15:48:53 +00:00
Keith Whitwell
86ddaa9d0e 965: hardwire correct behaviour for vp-tri setup (for now...) 2007-12-19 15:16:25 +00:00
Keith Whitwell
ded6ce2bd5 vp-tri: match vertex/color data of other tests 2007-12-19 15:13:20 +00:00
Keith Whitwell
ae280f1ce9 965: align buffer allocations to 4k 2007-12-19 14:20:23 +00:00
Keith Whitwell
2c8e50c0cb use a depth buffer temporarily 2007-12-19 13:13:53 +00:00
Keith Whitwell
65f67baa42 965: make sure stipple state gets uploaded 2007-12-19 13:13:53 +00:00
Keith Whitwell
2e3dfe97ee 965: allocate buffer space to hold batch commands 2007-12-19 13:13:53 +00:00
Zack Rusin
f13a200c83 actually set the max_index. useful in the driver 2007-12-19 07:50:29 -05:00
Keith Whitwell
f367c57802 965: fill unused surface pointers with zero 2007-12-19 12:23:30 +00:00
Zack Rusin
bc1fc7d673 i965: emit fb write on RET for now (until we get END back) 2007-12-19 07:11:16 -05:00
Keith Whitwell
a0ce71b51d 965: pitch is in bytes not pixels 2007-12-19 11:49:56 +00:00
Keith Whitwell
05ec043d1c 965: fix off-by-one in scissor rect 2007-12-19 11:37:16 +00:00
Keith Whitwell
2f53713beb 965: fix off-by-one in surface dimensions 2007-12-19 11:37:16 +00:00
Keith Whitwell
1f37b4d87e 965: respect surface width when dumping bitmap 2007-12-19 11:37:16 +00:00
Zack Rusin
38de4c5715 i965: actually detect whether a sampler is enabled/disabled 2007-12-19 06:24:16 -05:00
Keith Whitwell
aba4ee24cf 965: disable clipping more, and restore drawing rect packet 2007-12-19 11:10:35 +00:00
Keith Whitwell
e039824757 965: disable clipping for now 2007-12-19 11:10:35 +00:00
Keith Whitwell
94c2ab2895 965: fix vertex pointsize state, match default cull mode 2007-12-19 11:10:35 +00:00
Keith Whitwell
4fd2a2ac6f 965: fix colormask state 2007-12-19 11:10:35 +00:00
Keith Whitwell
9791c16b31 965: populate fp_input_count in setup key 2007-12-19 11:10:35 +00:00
Zack Rusin
93d90c6b57 i965: stuff the outputs into mrf registers when possible 2007-12-19 05:28:28 -05:00
Zack Rusin
4e1a445866 i965: be smarter about register allocation 2007-12-19 04:58:35 -05:00
Ben Skeggs
bf2410ca73 nouveau: nuke subchan auto-assign.
It's annoying for several reasons, especially in its current form.  May
possibly be reincarnated later (DDX depends on it these days), but in
not quite the same way.
2007-12-19 19:40:38 +11:00
Dan Nicholson
da693b7c89 Don't try to build nonexistent i915tex driver on linux-x86-64 2007-12-18 22:20:37 -08:00
Dan Nicholson
f71032b7e2 docs: Fix links in contribute section
The contribute section had a broken hyperlink, masking the mailing list
text.
2007-12-18 22:13:46 -08:00
Eric Anholt
d2d82f8a29 [915] Set cliprects in the drawbuffer software fallback case as well.
Otherwise, we may violate cliprect asssertions on clearing the buffers, which
isn't affected by the fallback.
2007-12-18 18:56:20 -08:00
Ben Skeggs
d67c2c1cd5 nouveau: remove sync hack, gallium got sort-of fixed. 2007-12-19 13:36:20 +11:00
Xiang, Haihao
4cca760a9b i965: allocate GRF registers before building subroutines,
it ensures there are sufficient registers for all subroutines.
2007-12-19 10:22:28 +08:00
Ben Skeggs
3e1e40ee79 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-19 13:21:41 +11:00
Xiang, Haihao
e3a1ae0fcb i965: restore the flag after building the subroutine of the
GS thread. fix #13240
2007-12-19 09:59:37 +08:00
Brian
88f1419f96 added glSecondaryColor3fv_func 2007-12-18 16:30:42 -07:00
Brian
83af4f3623 added two-side test 2007-12-18 16:25:48 -07:00
Brian
87002aba3b Test GL_VERTEX_PROGRAM_TWO_SIDE and frag shader gl_FrontFacing features 2007-12-18 16:24:19 -07:00
Brian
caec2a79e6 added twoside demo 2007-12-18 16:24:19 -07:00
Brian
256115bd5e simplify update two-side lighting test (follow-on to previous front/back-face changes) 2007-12-18 16:24:19 -07:00
Brian
441bab8f17 fix NEED_SECONDARY_COLOR for vert/frag progs 2007-12-18 16:24:19 -07:00
Brian
85f5e6d7b9 Fix a quadstrip front/back-face inconsistancy.
Only set front material colors to make it noticable if front/back-face
determination is incorrect anywhere.
2007-12-18 16:24:19 -07:00
Brian
d0a63de378 turn off TGSI_DEBUG 2007-12-18 16:01:53 -07:00
Brian
52da6b559a fix bug on GL_VERTEX_PROGRAM_TWO_SIDE path 2007-12-18 16:01:53 -07:00
Brian
8c20747834 setup the frontface register (fog.y, ATM) 2007-12-18 16:01:53 -07:00
Brian
fb4eb8c91b fix some semantic info mix-ups in calculate_vertex_layout() 2007-12-18 16:01:53 -07:00
Eric Anholt
9efa1029e5 Fix mismatched map/unmap of buffers in swrast read/drawpixels error paths. 2007-12-18 14:51:42 -08:00
Eric Anholt
4878f12189 [915] Free dri_bufmgr after mesa context data.
Fixes a crash when buffer objects are left around until context destroy.
2007-12-18 14:17:27 -08:00
Eric Anholt
a856da6324 [915] Make polygon stipple use pre-unpacked pixel data.
This fixes a crash when stippling using data from a PBO.
2007-12-18 14:14:44 -08:00
Eric Anholt
0dc2c68ffc [915] Fix clear color when clearing with triangles.
The diffuse color format is always ARGB32, regardless of the destination
surface format.
2007-12-18 10:42:30 -08:00
Keith Packard
dd1a868b74 [INTEL] Fix 965 to use new centralized mipmap pitch function 2007-12-18 10:22:16 -08:00
Keith Packard
a183efc132 [Intel] Centralize mipmap pitch computations.
mipmap pitches must account for the device alignment requirements, which
used to be fairly simple; just align to a 4-byte boundary. However, to allow
textures to be drawn to under TTM, they now need to be aligned to a 64-byte
boundary. Placing all of the alignment constraints in a single function
allows this new constraint to be applied uniformly.

There was some pitch constraining code in intel_miptree_create, but that was
modifying the pitch long after the miptree had been layed out, so it only
served to wreck the mipmap and cause rendering errors.
2007-12-18 10:22:04 -08:00
Keith Whitwell
c31416971e gallium: rationalize vertex_element state packet
Remove dst_offset (not used)
Add nr_components, which could be calculated from format, but would be
too much effort.

Update i965 driver to cope.
2007-12-18 17:25:33 +00:00
Keith Whitwell
208b2ad8ab gallium: give userbuffers some storage in the aub buffer pool 2007-12-18 16:57:17 +00:00
Keith Whitwell
9d4ab42f4b vbo: unmap and remap immediate vbo before/after each draw.
Also use BufferData(NULL) to get fresh storage and avoid synchronous
operation where we would have to flush and wait for the fence after each
draw because of the map.

This will chew through a whole load of buffer space on small draws, so
it isn't a proper solution.  Need to support a no-fence or append mapping
mode to do this right, or use user buffers.
2007-12-18 16:56:22 +00:00