projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77161c5
)
radeon: stabilise r300 driver like the F10 mesa bufmgr
author
Dave Airlie
<airlied@redhat.com>
Mon, 23 Feb 2009 03:33:51 +0000
(13:33 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 23 Feb 2009 04:04:18 +0000
(14:04 +1000)
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.
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index 3acc206a8b9311cbbb545105dcbf6ebe3c23a3bb..b47b095cf203991650a46241b62c4708a841416d 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@
-364,8
+364,9
@@
static int cs_erase(struct radeon_cs *cs)
static int cs_need_flush(struct radeon_cs *cs)
{
- /* FIXME: we should get the texture heap size */
- return (cs->relocs_total_size > (7*1024*1024));
+ /* this function used to flush when the BO usage got to
+ * a certain size, now the higher levels handle this better */
+ return 0;
}
static void cs_print(struct radeon_cs *cs, FILE *file)