Commit graph

21462 commits

Author SHA1 Message Date
Dave Airlie
14c3bddbac r200: enable hw clears 2009-03-10 19:03:07 +10:00
Dave Airlie
c122cc4097 r300: emit texture in GTT or VRAM 2009-03-09 13:44:03 +10:00
Dave Airlie
778cf80d9e r300: move firevertices out into the main place its needed.
This fixes a hang on context destruction on rs690
2009-03-09 13:06:10 +11:00
Dave Airlie
1386e8a6ba radeon: fix cut-n-paste typo 2009-03-08 02:41:30 +10:00
Dave Airlie
f881035fd8 rs690: fix r300 swtcl bug in DMA code.
When we finish emitting swtcl objects, we request space in the cmdbuf,
and flush if no space exists. However in this case we also flush
the DMA buffer we just put the vertices we wanted to send in.

This checks in advance if we have space in the buffer.
2009-03-07 17:23:40 +11:00
Dave Airlie
760068cc8d r300: fix uninit variable warning 2009-03-06 23:42:35 +11:00
Dave Airlie
e0313ef061 r300: fix swtcl codepaths 2009-03-06 23:42:17 +11:00
Dave Airlie
c6ac53bc40 radeon: implement userspace clears
This is pretty much Eric Anholts implementation of clear using the GL state machine
from the Intel drivers.

It works quite well for now for us, probably could do with trying to use Z engine for
clears.
2009-03-06 16:07:23 +10:00
Dave Airlie
b074aacdb2 r200: cs emit state fixups 2009-03-06 05:42:37 +10:00
Dave Airlie
a03a4dd524 r200: remove depth check for dri2 2009-03-06 04:48:20 +10:00
Dave Airlie
7ba9eb1e85 r200: temporary sw clear code 2009-03-06 04:48:20 +10:00
Dave Airlie
9d72a75917 radeon: use t->bo to figure out of settexbuffer override is in action 2009-03-05 19:00:17 +10:00
Dave Airlie
eba8008916 r200: port over state emits for kms from radeon
this needs testing on real hw
2009-03-05 18:58:48 +10:00
Dave Airlie
5c80eb7ec1 r200: add set tex buffer support 2009-03-06 02:37:10 +10:00
Dave Airlie
31f1298807 radeon: r100 clean up CS packet size calc 2009-03-04 22:26:44 +10:00
Dave Airlie
924bf0d8d3 radeon: settexbuffer support
This gets DRI2 compiz going
2009-03-04 22:26:20 +10:00
Dave Airlie
26d0172a5b radeon: fix texturing for r100 2009-03-04 20:24:08 +10:00
Dave Airlie
940d47de08 radeon: use swrast clear - fail on depth
need to write real hw user clear
2009-03-04 18:36:46 +10:00
Dave Airlie
e0de73e8a5 radeon: fixup some segfaults/exit at startup 2009-03-04 18:36:13 +10:00
Dave Airlie
54b42c0a4a radeon: remove debugging 2009-03-03 03:37:23 +10:00
Dave Airlie
2b85fccae5 radeon: refactor framebuffer code like intel
this is a step towards fbos and should fix pageflipping, but
I think the first flip seems broken.
2009-03-03 03:29:37 +10:00
Alex Deucher
863c76a7bb R300: add support for RS600 chips 2009-02-27 14:48:24 -05:00
Alex Deucher
5a34ace3e6 R300: set the number of GB pipes on all r3xx-r5xx chips 2009-02-27 14:31:14 -05:00
Dave Airlie
0dba8883e3 r300: make ste text buffer work with > 2048 on r500 2009-02-27 14:04:03 +10:00
Dave Airlie
26c1b0af02 radeon: add more fbconfigs
this makes glxgears get its background back when running under DRI2
2009-02-27 14:04:03 +10:00
Dave Airlie
7f44b62a4a r300: remove depth offset exits in favour of rrb depth changes 2009-02-27 14:04:03 +10:00
Dave Airlie
294aab9b71 r200: fixup emit sizes for kms 2009-02-27 03:37:30 +10:00
Dave Airlie
e267a090ab r200: port over cs emit changes from radeon 2009-02-27 03:05:42 +10:00
Dave Airlie
2972d06526 radeon: fixup old packets emission for CS case 2009-02-26 18:26:22 +10:00
Dave Airlie
6d7164705b r100: fixup kms state emissions 2009-02-26 15:32:34 +10:00
Dave Airlie
6415e64cbc radeon: avoid page flip code in DRI2 2009-02-26 15:32:34 +10:00
Dave Airlie
3ec7137a75 radeon: enable DRI2 for r100 2009-02-26 15:32:33 +10:00
Dave Airlie
925ea2d9a5 radeon: move CB/ZB state init into emit code
This removes the use of the sarea for this stuff so makes DRI2 easier
and emits the CB/ZB info in the correct place
2009-02-26 15:32:27 +10:00
Dave Airlie
158ede35d5 r300: fixup texture state emission for kms path 2009-02-26 11:09:32 +10:00
Dave Airlie
2c033f3893 r300: don't call page flip on DRI2 2009-02-26 11:09:16 +10:00
Dave Airlie
bc5f94c1e1 r300: don't flush VAP too often.
Flush the VAP the first time for each state atom we upload new
VAP data
2009-02-26 11:08:14 +10:00
Dave Airlie
199867bd45 r300: drop r300Flush for the generic one 2009-02-25 18:06:44 +10:00
Dave Airlie
2ebf9b9521 r300: fix bo ref/unref, plugs DRI handle leaks 2009-02-24 12:04:49 +10:00
Dave Airlie
c32a28d86e r300: fixup old setTexOffset DRI1 extension 2009-02-23 15:41:30 +10:00
Dave Airlie
f4502f0f8c radeon: add more debug info to the flush debug 2009-02-23 14:04:22 +10:00
Dave Airlie
018f5f92cc r300: revert back autostate change on cacheflush emit 2009-02-23 14:04:22 +10:00
Dave Airlie
13ed7985b2 r300: use OUT_BATCH_REGVAL in a few more places 2009-02-23 14:04:20 +10:00
Dave Airlie
6ffd472b0e r300: set u to 0 so debug logs are easier to read 2009-02-23 14:04:19 +10:00
Dave Airlie
8c23970479 radeon: stabilise r300 driver like the F10 mesa bufmgr
For some reason flushs caused by this CS needs flush hook,
caused the chip to lockup on r300 under compiz, whereas
the F10 driver was rock solid.
2009-02-23 14:04:18 +10:00
Dave Airlie
77161c5ff5 radeon: add some debugging for flush ioctls 2009-02-23 14:04:18 +10:00
Dave Airlie
d4bfe34cb9 radeon: make state atom print like old r300 code 2009-02-23 14:04:17 +10:00
Dave Airlie
b4a90c6213 radeon: fixup legacy bo/cs out of VRAM waiting.
This is similiar to the code from the F10 r300 bufmgr
2009-02-23 14:04:17 +10:00
Dave Airlie
da17b36412 r300: make DRI2 not crash on compiz start 2009-02-18 10:47:17 +10:00
Dave Airlie
e9d6beaab4 radeon: move device param id check ifndef 2009-02-18 10:47:17 +10:00
Dave Airlie
745c787338 radeon: initialise swapped objects pointer 2009-02-17 16:01:16 +10:00