diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-03-13 06:07:33 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-03-13 18:23:27 +0100 |
commit | bcec6d851ce6ec2d948f03e5a1adfb5871e4e627 (patch) | |
tree | 9c989e991db8886d7c39e982be108d837ef45f33 /src/gallium/winsys/drm/radeon/core/radeon_winsys.h | |
parent | e31bca139f720396d1a1639b46d37aee4fd9736e (diff) |
r300g: refrain from using immediate mode if it causes slowdown
E.g. when mapping buffers could flush CS or cause waiting
for a busy buffer.
The side effect of this is it also fixes progs/demos/arbocclude however
a separate fix should be proposed to address this issue in other cases
it might occur.
Diffstat (limited to 'src/gallium/winsys/drm/radeon/core/radeon_winsys.h')
-rw-r--r-- | src/gallium/winsys/drm/radeon/core/radeon_winsys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_winsys.h b/src/gallium/winsys/drm/radeon/core/radeon_winsys.h index 37eeb45979..887a381cc4 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_winsys.h +++ b/src/gallium/winsys/drm/radeon/core/radeon_winsys.h @@ -118,6 +118,9 @@ struct radeon_winsys { uint32_t pitch, boolean microtiled, boolean macrotiled); + + boolean (*is_buffer_referenced)(struct radeon_winsys *winsys, + struct pipe_buffer *buffer); }; #endif |