Commit graph

92185 commits

Author SHA1 Message Date
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
Zack Rusin
7cef9237ae i965: don't treat swz differently and upload vertex buffers 2007-12-18 09:59:54 -05:00
Brian
e2a669aed4 obsolete 2007-12-17 20:41:20 -07:00
Eric Anholt
6f1bfdc4bf [i915] Remove redundant set_draw_region code (like the comment says). 2007-12-17 17:01:07 -08:00
Eric Anholt
33487c15ba [intel] Improve INTEL_DEBUG=blit description of clearing. 2007-12-17 16:57:59 -08:00
Eric Anholt
c24300f937 [intel] Fix copy'n'pasteo in decoding of the blit clear packet. 2007-12-17 16:53:51 -08:00
Eric Anholt
9a8819e767 [965] Add decode of 3DSTATE_DRAWING_RECTANGLE. 2007-12-17 16:53:47 -08:00
Eric Anholt
146030aad2 [965] Allow draw or depth regions to be NULL.
With FBOs, we end up wanting to do 3D metaops against one or the other without
having to find the other one to fill in if we're not going to draw to it.
2007-12-17 16:50:09 -08:00
Ben Skeggs
3af35c6dfa nouveau: match latest gallium changes 2007-12-18 11:27:44 +11:00
Ben Skeggs
015871a075 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-18 11:02:46 +11:00
Eric Anholt
447facfcd6 [965] Simplify scissor handling by using DrawBuffer values. 2007-12-17 15:30:04 -08:00
Eric Anholt
8336f3ffb7 [965] fix bad conflict resolution in debug code. 2007-12-17 14:42:31 -08:00
Eric Anholt
2c9e515d86 [965] Replace our own depth constants in intel context with GL context ones. 2007-12-17 14:28:54 -08:00
Eric Anholt
98d4355240 [965] Fix software fallbacks with region-backed textures. 2007-12-17 13:47:52 -08:00
Eric Anholt
c1d6b874b3 [intel] Cleanup of */intel_blit.c to bring the two closer. 2007-12-17 13:19:33 -08:00
Brian
04a5a8b3bc updates for depth/stencil/alpha state 2007-12-17 14:06:17 -07:00
Eric Anholt
b3169a9c35 [965] Output the buffer type in INTEL_DEBUG=bat surface state decode. 2007-12-17 13:02:16 -08:00
Brian
8978627ad0 Emit declarations for constants (references to the const buffer) 2007-12-17 14:00:35 -07:00
Zack Rusin
aeb5362281 i965: index the destination offset with regards to the current index 2007-12-17 14:36:31 -05:00
Zack Rusin
531efbab75 i965: return false when the function fails, not succeeds 2007-12-17 14:05:46 -05:00
Zack Rusin
55c1894d0a Add the new test program for fp's. 2007-12-17 13:23:47 -05:00
Keith Whitwell
bfe79babf9 gallium: incorporate alpha state into depth_stencil state object. 2007-12-17 16:14:29 +00:00
Michel Dänzer
1e04132306 i915: Fix issues with glDrawBuffer(GL_NONE).
Don't dereference NULL renderbuffer pointer, and make sure the software
fallback sticks.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13694 .
2007-12-17 12:20:56 +01:00
Ben Skeggs
c5ffd8e9af nv40: fix valgrind complaints 2007-12-17 21:49:16 +11:00
Ben Skeggs
8043d2d261 nv40: clean state a bit 2007-12-17 21:45:13 +11:00
Keith Whitwell
556e247cee 965: remove dead state atom decls 2007-12-17 10:30:38 +00:00
Keith Whitwell
3be91c5a49 965: fix for non-indexed draw path 2007-12-17 10:30:38 +00:00
Keith Whitwell
95adfb9fec 965: fix/hack check for NULL texunit in state upload 2007-12-17 10:30:38 +00:00
Keith Whitwell
b52e4477f8 965: fix ExtDivide check 2007-12-17 10:30:38 +00:00
Keith Whitwell
ae858511d0 965: put brw_constant_buffer atom directly in update list 2007-12-17 10:30:38 +00:00
Xiang, Haihao
d859a60dc3 i965: check NULL pointer 2007-12-17 14:42:42 +08:00
Eric Anholt
d913a15898 [i915] Fix missing symbol from 965 changes. 2007-12-16 13:00:23 -08:00
Eric Anholt
1daf5b3ad6 [965] Fully initialize the texture surface key data (padding around GLboolean) 2007-12-16 12:09:22 -08:00
Eric Anholt
cbed2e4add [965] Enable ARB_pixel_buffer_object, and disable broken imaging extension.
While I haven't tested the imaging extension, this matches what 915 does.
2007-12-16 11:46:10 -08:00
Eric Anholt
c0b4257aa9 [965] Move to using shared texture management code.
This removes the delayed texture upload optimization from 965, in exchange for
bringing us closer to PBO support.  It also disables SGIS_generate_mipmap,
which didn't seem to be working before anyway, according to the lodbias demo.
2007-12-16 11:26:19 -08:00
Brian
41b1aa5109 switch on cpp instead of format 2007-12-16 10:00:51 -07:00
Ben Skeggs
7dcef36f4c nouveau: bump pushbuf size a little, so a "full" packet can fit 2007-12-17 00:46:30 +11:00
Ben Skeggs
66013a252f nv40: colormask thinko 2007-12-17 00:11:41 +11:00
Ben Skeggs
f7e99bf22c nv40: don't use vertex buffers for static vertices. 2007-12-16 23:45:30 +11:00
Ben Skeggs
4c2a3356cf nouveau: some cleanups 2007-12-16 21:31:28 +11:00
Ben Skeggs
b337ecdd8e nv40: fix culling 2007-12-16 20:44:44 +11:00
Ben Skeggs
19af6e9161 nv40: typo 2007-12-16 20:21:37 +11:00
Ben Skeggs
f287f687fe nv40: fp support for TGSI_FILE_IMMEDIATE.
arbfslight works, nouveau's first GLSL prog :)
2007-12-16 19:28:05 +11:00