summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_state.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-04-10 04:33:23 +0200
committerMarek Olšák <maraeo@gmail.com>2012-04-24 01:39:21 +0200
commite8ab3b1ce76dddca7b591b9ce21836ab36995653 (patch)
tree20db56568033d05bb9d073bedee959daa06f9d3e /src/gallium/include/pipe/p_state.h
parent5ec7c28fdbc2e05d20b1a07cba1fe6ac3b6658f9 (diff)
downloadexternal_mesa3d-e8ab3b1ce76dddca7b591b9ce21836ab36995653.zip
external_mesa3d-e8ab3b1ce76dddca7b591b9ce21836ab36995653.tar.gz
external_mesa3d-e8ab3b1ce76dddca7b591b9ce21836ab36995653.tar.bz2
gallium: add user_ptr in pipe_resource
I need to access the pointer in st/mesa when I only have pipe_resource.
Diffstat (limited to 'src/gallium/include/pipe/p_state.h')
-rw-r--r--src/gallium/include/pipe/p_state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 72ec04a..a459a56 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -415,6 +415,9 @@ struct pipe_resource
unsigned bind; /**< bitmask of PIPE_BIND_x */
unsigned flags; /**< bitmask of PIPE_RESOURCE_FLAG_x */
+
+ /* XXX this is only temporary and will be removed once it's not needed */
+ uint8_t *user_ptr; /**< user buffer pointer */
};