[Mesa-dev] [PATCH 2/5] i965/miptree: Fix comments for map mode

Chad Versace chad.versace at intel.com
Fri Sep 25 12:05:47 PDT 2015


The comment for intel_miptree_map::mode claimed that it was a bitmask of
GL_MAP_{READ,WRITE,INVALIDATE}_BIT. In reality, the bitmask may include
any of {GL,BRW}_MAP_*_BIT.
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
index a65dae9..830ff07 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h
@@ -77,7 +77,7 @@ struct intel_texture_image;
 #define BRW_MAP_DIRECT_BIT	0x80000000
 
 struct intel_miptree_map {
-   /** Bitfield of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT, GL_MAP_INVALIDATE_BIT */
+   /** Bitfield of GL_MAP_*_BIT and BRW_MAP_*_BIT. */
    GLbitfield mode;
    /** Region of interest for the map. */
    int x, y, w, h;
-- 
2.5.0.342.g44e0223



More information about the mesa-dev mailing list