diff options
author | Dave Airlie <airlied@redhat.com> | 2009-02-23 13:33:51 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-23 14:04:18 +1000 |
commit | 8c239704792712c246d04450cab8aa167ed8680c (patch) | |
tree | 2d4306416c2788137984ea3b749c63a1787dc3ea /src/mesa/drivers/dri/radeon | |
parent | 77161c5ff51a7b8fcd7043b94c2cb86cb1d57d79 (diff) |
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.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_cs_legacy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c index 3acc206a8b..b47b095cf2 100644 --- 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) |