summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/texmem.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-09-08 21:40:10 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-09-08 21:40:10 +0000
commit45ba4e43322076be27e994a1d78b8b4802c5ae72 (patch)
tree7b3eeabb0a7cc3712317fec2024872416347cbc7 /src/mesa/drivers/dri/common/texmem.h
parentd9b9b4b3beafa824914ca460754bf0a9d7ee80b6 (diff)
use an explicit reserved field, rather than magic number in bound
Diffstat (limited to 'src/mesa/drivers/dri/common/texmem.h')
-rw-r--r--src/mesa/drivers/dri/common/texmem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/texmem.h b/src/mesa/drivers/dri/common/texmem.h
index 486cb0dab9..5c1fc32384 100644
--- a/src/mesa/drivers/dri/common/texmem.h
+++ b/src/mesa/drivers/dri/common/texmem.h
@@ -67,6 +67,9 @@ struct dri_texture_object {
* A placeholder should have a heap and a memBlock.
*/
PMemBlock memBlock; /**< Memory block containing texture */
+
+ unsigned reserved; /**< Cannot be swapped out by user contexts. */
+
unsigned bound; /**< Bitmask indicating which tex units
* this texture object is bound to.
* Bit 0 = unit 0, Bit 1 = unit 1, etc