diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-11-30 20:50:31 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-11-30 22:21:49 +0000 |
commit | 00aa4f7a45a318af5b651f9f3928e9da4443233a (patch) | |
tree | baf156d235a9497fd9151ea470d65e452acf40fd /src/i830.h | |
parent | 8dd1c9eca02fb8da0c51f6fa4a38eb5e5ff41855 (diff) |
uxa: Limit maximum size of tiled objects
On older chipsets (i.e. pre-i965) tiling is very restrictive and imposes
severe size and alignment constraints. Combine that with relatively
small apertures and it is very easy to create a batch buffer that
cannot be mapped into the aperture (but would otherwise fit based purely
on total object size). To prevent this we need to not use tiling for large
buffers (the very same buffers where tiling would be of most benefit!).
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -311,6 +311,7 @@ typedef struct intel_screen_private { int accel_max_x; int accel_max_y; int max_gtt_map_size; + int max_tiling_size; Bool XvDisabled; /* Xv disabled in PreInit. */ Bool XvEnabled; /* Xv enabled for this generation. */ @@ -467,6 +468,7 @@ unsigned long i830_get_fence_size(intel_screen_private *intel, unsigned long siz unsigned long i830_get_fence_pitch(intel_screen_private *intel, unsigned long pitch, uint32_t tiling_mode); void i830_set_max_gtt_map_size(ScrnInfoPtr scrn); +void i830_set_max_tiling_size(ScrnInfoPtr scrn); i830_memory *i830_allocate_framebuffer(ScrnInfoPtr scrn); |