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
Dave Airlie
9c040745fe
radeon: legacy texMem interface fixups.
...
The texmem.c interface is wildly messed up it really wants to own the objects
so let it, pain in the ass but this code should work a lot better now
2009-02-17 14:48:49 +10:00
Dave Airlie
7ce6af25e5
Revert "dri/radeon: export a function to cleanup a texture object."
...
This reverts commit 5325f86240 .
2009-02-17 14:46:12 +10:00
Dave Airlie
2ba4fc3d60
radeon/r200: drop legacy texture heap code
2009-02-17 14:00:24 +10:00
Dave Airlie
48e7b940eb
radeon/r200: fixup texturing aging calls
2009-02-17 13:39:38 +10:00
Dave Airlie
7c7ff659ce
radeon: fixup destroy texture object exit path and update LRU
...
the destroy path was doing bad things with structure names, make it do less
bad things, use container_of instead
2009-02-17 11:17:22 +10:00
Dave Airlie
43c71a2d40
radeon: remove leftover debug
2009-02-17 10:42:51 +10:00
Dave Airlie
62d504d818
radeon/r200: drop dirty state from texture object + pp_txoffset
...
this is just more code cleanup for old dead code
2009-02-17 10:41:21 +10:00
Dave Airlie
a365f9b78b
r200: align with r100 code
2009-02-17 10:28:43 +10:00
Dave Airlie
646325a5ef
radeon: fix not emitting texture state correctly
...
this is whole texture dirty bit is probably not needed with the current
codebase, need to revisit
2009-02-17 10:27:45 +10:00
Dave Airlie
0a8cba9a65
radeon: steal miptree optimisation from intel codebase
...
This replaces a miptree if it won't distrub anything else.
2009-02-17 10:26:58 +10:00
Dave Airlie
7a1dbcabf3
radeon: move YUV on first texunit check after hw state is setup
2009-02-17 10:26:33 +10:00
Dave Airlie
5325f86240
dri/radeon: export a function to cleanup a texture object.
...
The radeon legacy code want to cleanup not free the texture obj,
so export a function to do that and wrap it.
2009-02-17 10:25:34 +10:00
Dave Airlie
ecf0a3eac1
radeon: fix texcompress2 test.
...
this makes compressed subimages work properly.
2009-02-16 09:51:08 +10:00
Dave Airlie
f069bc4a8e
radeon: fix compressed tex subimage unpack parameter
2009-02-16 17:16:28 +10:00
Dave Airlie
b0e8ac8fd2
radeon: add cflags to decide whether to link libdrm_radeon or not.
...
You don't need libdrm_radeon for the legacy driver to build,
only for the experimental mm/cs paths.
2009-02-15 17:03:47 +10:00
Nicolai Haehnle
7d19d27684
radeon-common: Fix crash in glGetTexImage
...
Since texture images are now stored in miptrees, we cannot usually
access them directly via the Data pointer.
So we wrap Mesa's implementation by map/unmap calls.
This crash was triggered by Sauerbraten, Piglit now contains a
regression test.
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-14 21:46:44 +01:00
Nicolai Haehnle
2d9471b281
r300: Fix crash in cubemap tree creation
...
The mip tree creation would crash if the first baselevel image to be uploaded
was not the positive-x image.
Found with Sauerbraten, also added a regression test to Piglit.
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-14 20:47:08 +01:00