summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-02 01:46:11 +0200
committerMarek Olšák <[email protected]>2017-04-04 11:14:43 +0200
commit4648bc2a8fbb11df4602d3f3aceeb086db9e2304 (patch)
tree0549326a9868a982fcba2d5d63b9db721afa9f66 /src
parenteb0fd0e5f860d0bc1e1108049481e1773242e09e (diff)
gallium: decrease the size of pipe_surface - 48 -> 40 bytes
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_state.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 62f51926792..a4692b60968 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -407,15 +407,14 @@ union pipe_surface_desc {
struct pipe_surface
{
struct pipe_reference reference;
+ enum pipe_format format:16;
+ unsigned writable:1; /**< writable shader resource */
struct pipe_resource *texture; /**< resource into which this is a view */
struct pipe_context *context; /**< context this surface belongs to */
- enum pipe_format format;
/* XXX width/height should be removed */
- unsigned width; /**< logical width in pixels */
- unsigned height; /**< logical height in pixels */
-
- unsigned writable:1; /**< writable shader resource */
+ uint16_t width; /**< logical width in pixels */
+ uint16_t height; /**< logical height in pixels */
union pipe_surface_desc u;
};