From: Marek Olšák Date: Sat, 1 Apr 2017 23:27:13 +0000 (+0200) Subject: gallium: decrease the size of pipe_framebuffer_state - 96 -> 80 bytes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb0fd0e5f860d0bc1e1108049481e1773242e09e;p=mesa.git gallium: decrease the size of pipe_framebuffer_state - 96 -> 80 bytes Reviewed-by: Nicolai Hähnle Reviewed-by: Brian Paul --- diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 54bcf078680..62f51926792 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -355,12 +355,12 @@ struct pipe_stencil_ref */ struct pipe_framebuffer_state { - unsigned width, height; - unsigned samples; /**< Number of samples in a no-attachment framebuffer */ - unsigned layers; /**< Number of layers in a no-attachment framebuffer */ + uint16_t width, height; + uint16_t layers; /**< Number of layers in a no-attachment framebuffer */ + ubyte samples; /**< Number of samples in a no-attachment framebuffer */ /** multiple color buffers for multiple render targets */ - unsigned nr_cbufs; + ubyte nr_cbufs; struct pipe_surface *cbufs[PIPE_MAX_COLOR_BUFS]; struct pipe_surface *zsbuf; /**< Z/stencil buffer */