diff options
author | Corbin Simpson <[email protected]> | 2010-03-22 18:11:40 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-03-22 18:42:42 -0700 |
commit | ed61faec7ea307ff22738b4fcc96933f910e4145 (patch) | |
tree | 3a5d53a22f4e341cf7f19a6eaf2626f753902082 | |
parent | ca49a72a55895f8fefb090405a79918cbaa805ee (diff) |
radeong: Always initialize this variable.
May or may not be responsible for slight increases in ipers FPS.
-rw-r--r-- | src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c index e36bad7ea8c..ec45abf4676 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_drm_buffer.c @@ -70,7 +70,7 @@ radeon_drm_buffer_map(struct pb_buffer *_buf, unsigned flags) { struct radeon_drm_buffer *buf = radeon_drm_buffer(_buf); - int write; + int write = 0; if (flags & PIPE_BUFFER_USAGE_DONTBLOCK) { if ((_buf->base.usage & PIPE_BUFFER_USAGE_VERTEX) || @@ -365,7 +365,7 @@ boolean radeon_drm_bufmgr_is_buffer_referenced(struct pb_buffer *_buf) return (radeon_bo_is_referenced_by_cs(buf->bo, buf->mgr->rws->cs) || radeon_bo_is_busy(buf->bo, &domain)); } - + void radeon_drm_bufmgr_flush_maps(struct pb_manager *_mgr) { |