diff options
author | Eric Anholt <[email protected]> | 2011-10-19 10:31:40 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-03 23:48:07 -0700 |
commit | eab201bad4d4f250ca9318a228d1c71561daee1a (patch) | |
tree | dc6069e4fe6399ed825b80fad39d5a9abb1e65c3 /src/mesa/drivers/dri/intel/intel_fbo.h | |
parent | a1488eec38d5a76f4e04245a6ce8302444800805 (diff) |
i965/gen6: Improve glReadPixels() performance by blitting to a linear temp.
The readpixels microbenchmark in mesa-demos goes from 47Mpix/sec at
1000x1000 to 450Mpix/sec. The 10x10 sizes stay about the same.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_fbo.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.h b/src/mesa/drivers/dri/intel/intel_fbo.h index 4bcbecdc9c7..f45afd88514 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.h +++ b/src/mesa/drivers/dri/intel/intel_fbo.h @@ -44,6 +44,7 @@ struct intel_renderbuffer { struct gl_renderbuffer Base; struct intel_region *region; + drm_intel_bo *map_bo; void *map_buffer; GLuint map_x, map_y, map_w, map_h; GLbitfield map_mode; @@ -60,7 +61,6 @@ struct intel_renderbuffer */ struct gl_renderbuffer *wrapped_depth; struct gl_renderbuffer *wrapped_stencil; - /** \} */ GLuint draw_x, draw_y; /**< Offset of drawing within the region */ |