diff options
author | Chad Versace <[email protected]> | 2011-09-22 13:04:18 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-10-18 11:42:54 -0700 |
commit | f8377b411dfe3c879eaab11bb86f509178796bd1 (patch) | |
tree | 154b3cb7a6c846ee35e75673f021a7c2af28f8e7 /src/mesa/drivers/dri/intel/intel_tex.h | |
parent | 7b0f748efa5af84668cc3609a0070163bfa22607 (diff) |
intel: Add 'mode' param to intel_region_map
The 'mode' param is a bitset of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT.
A future commit will perform buffer resolves in intel_region_map(). So,
even though the access mode is irrelevant to the GTT, the extra
information allows us to intelligently avoid unneccessary buffer resolves.
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.h b/src/mesa/drivers/dri/intel/intel_tex.h index 85aff5fc638..8450f2984bb 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.h +++ b/src/mesa/drivers/dri/intel/intel_tex.h @@ -57,14 +57,16 @@ GLuint intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit); void intel_tex_map_level_images(struct intel_context *intel, struct intel_texture_object *intelObj, - int level); + int level, + GLbitfield mode); void intel_tex_unmap_level_images(struct intel_context *intel, struct intel_texture_object *intelObj, int level); void intel_tex_map_images(struct intel_context *intel, - struct intel_texture_object *intelObj); + struct intel_texture_object *intelObj, + GLbitfield mode); void intel_tex_unmap_images(struct intel_context *intel, struct intel_texture_object *intelObj); |