Commit graph

13313 commits

Author SHA1 Message Date
Brian
573b4414b9 fix mem leak (free key) 2008-01-01 10:21:21 -07:00
Brian
171a9674c4 free surface caches in softpipe_destroy() 2008-01-01 10:21:21 -07:00
Brian
aec6009ece fix a memleak 2008-01-01 10:21:21 -07:00
Brian
57a5421d65 free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian
f6136f993a free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian
eba2e044a0 added tgsi_exec_machine_free_data() 2008-01-01 10:21:20 -07:00
Brian
552907d8a4 free Default1D/2DArray objects 2008-01-01 10:21:20 -07:00
Ben Skeggs
92ee96d83d nv40: s/READ/WRITE/ 2007-12-30 15:24:16 +11:00
Ben Skeggs
6af6bb6817 nouveau: header update 2007-12-30 01:17:47 +11:00
Ben Skeggs
24cfb7d2e2 nv40: untested fragprog mods for big-endian chips 2007-12-30 01:03:24 +11:00
Ben Skeggs
09612416d7 nouveau: typo fix 2007-12-30 00:37:58 +11:00
Ben Skeggs
8ed3a69fc8 nouveau: remove legacy stuff 2007-12-27 09:09:11 +11:00
Ben Skeggs
dc6d73e1a4 nouveau: track last validated offsets, so we know when relocs can be avoided. 2007-12-27 06:22:28 +11:00
Ben Skeggs
3b8efe1dfe nouveau: allow unfenced read of buffers in a few situations 2007-12-27 06:10:49 +11:00
Ben Skeggs
a794fcfbdb nouveau: remove fence_del(), _ref() can be used for the same purpose. 2007-12-27 06:02:01 +11:00
Ben Skeggs
f33467d72a nouveau: header update 2007-12-26 00:56:00 +11:00
Ben Skeggs
e32e0e2b8e nv40: use index buffers rather than inline indices.
We probably want to use inline indices in some situations still, but this
commit's primary purpose is to workaround some mis-rendering caused by a
more complicated problem that'll get fixed eventually.
2007-12-26 00:37:21 +11:00
Zack Rusin
f9e0e2b3ef i965: a little better way of handling immediates 2007-12-24 07:57:34 -05:00
Ben Skeggs
d732728590 nouveau: pushbuf code, now with 50% less suck!
Far more efficient, if not a bit more complicated.  Hopefully not too
buggy still.

This commit will potentially expose some unrelated bugs, fixes for them
will follow "real soon now".
2007-12-24 19:28:36 +11:00
Ben Skeggs
f9cfc32376 nv40: ensure all required buffers are accounted for during state validation 2007-12-24 18:53:41 +11:00
Ben Skeggs
5fcffcd312 nouveau: speed up user buffers.
Try and fit user buffers into a small GART scratch area at validate time,
instead of going to a lot of effort to fit these (mostly) use-once-and-discard
objects into VRAM.
2007-12-23 17:06:18 +11:00
Ben Skeggs
7372a596a9 nv40: seems we have stencil faces around the wrong way. 2007-12-23 16:19:25 +11:00
Ben Skeggs
74757eb970 nouveau: don't wait when deleting fences unless needed 2007-12-23 16:18:00 +11:00
Ben Skeggs
fa605cf661 nouveau: some cleanups 2007-12-23 16:17:22 +11:00
Ben Skeggs
b4b002661e nouveau: match gallium changes 2007-12-23 16:05:02 +11:00
Ben Skeggs
6c14cf5834 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-23 16:01:59 +11:00
Zack Rusin
4fa7afabc9 i965: very crude and hacky way of handling immediates 2007-12-20 12:54:23 -05:00
Keith Whitwell
a85535b7cb gallium: make state tracker explictly ask for rendercache flushes 2007-12-20 13:47:46 +00:00
Keith Whitwell
9e41d547db 965: respect pipe flush flags
Now we emit way too many flushes instead of none at all.
2007-12-20 13:47:11 +00:00
Keith Whitwell
21c67b70d4 gallium: translate ARB fp/vp immediates consistently to tgsi immediates 2007-12-20 13:20:27 +00:00
Zack Rusin
ebf78c0dcc 965: fix the constant buffers 2007-12-20 07:05:52 -05:00
Brian
e9207430ce Add some prototype code for converting RET to END for main(). Disabled for now. 2007-12-19 14:06:22 -07:00
Brian
4a1776a763 temporarily defeat an assertion 2007-12-19 13:53:28 -07:00
Brian
c664302c3e Fix problem with initial viewport/scissor size.
If an app never called glViewport, the viewport size was always 0 by 0 pixels.
Now pass initial size to st_create_framebuffer() and initialize the viewport
and scissor bounds in st_make_current().
This could also be fixed by ensuring the gl_framebuffers passed to
_mesa_make_current() were initialized to the right size.  But that involves
allocating the renderbuffers/pipe_surfaces earlier and that runs into some
other issues ATM.
Also remove obsolete createRenderbuffers param to st_create_framebuffer().
2007-12-19 13:45:00 -07:00
Brian
1575763a6f convert Mesa OPCODE_END to TGSI_OPCODE_END, not TGSI_OPCOD_RET 2007-12-19 13:16:36 -07:00
Brian
127ab73b38 remove obsolete TXP, add some sanity checks 2007-12-19 13:16:36 -07:00
Brian
cedf6892e7 special-case PSIZE too 2007-12-19 13:16:36 -07:00
Brian
dbf6eced87 move st_make_current() before buffer size check so renderbuffer alloc storage works 2007-12-19 13:16:36 -07:00
Brian
c61b32777b new assertions 2007-12-19 13:16:36 -07:00
Keith Whitwell
d24a9b26fc 965: dump curbe contents to stderr 2007-12-19 19:05:19 +00:00
Keith Whitwell
5ff69cfd68 965: handle BRW_CONSTANT_BUFFER data type 2007-12-19 19:04:35 +00:00
Zack Rusin
a65f39f918 consts 2007-12-19 18:49:46 +00:00
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