From e8ab3b1ce76dddca7b591b9ce21836ab36995653 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 10 Apr 2012 04:33:23 +0200 Subject: gallium: add user_ptr in pipe_resource I need to access the pointer in st/mesa when I only have pipe_resource. --- src/gallium/include/pipe/p_state.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/include/pipe') diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 72ec04a10cd..a459a56a760 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 */ }; -- cgit v1.2.3