summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-11-14 22:46:46 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-11-14 22:53:25 +0800
commitad3bc0158d37e98fcbbe6a8e31413c142a260424 (patch)
tree99497a2940e8514a9e543594ff62b56d53513fa7 /src/i830.h
parent26194e19e1c80615697016e25640d4c8c244353f (diff)
Don't enable fbc with XAA or tiling is off.
This slightly reworks my last fbc patch. We don't support tiled front buffer with XAA now, so also disable fbc on it. If tiled alloc failed, disable fbc too.
Diffstat (limited to 'src/i830.h')
-rw-r--r--src/i830.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830.h b/src/i830.h
index 17d2fe2b..3abc8006 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -805,6 +805,11 @@ static inline int i830_fb_compression_supported(I830Ptr pI830)
return FALSE;
if (IS_I810(pI830) || IS_I815(pI830) || IS_I830(pI830))
return FALSE;
+ /* fbc depends on tiled surface. And we don't support tiled
+ * front buffer with XAA now.
+ */
+ if (!pI830->tiling || (IS_I965G(pI830) && !pI830->useEXA))
+ return FALSE;
return TRUE;
}