Mesa (master): gallium: decrease the size of pipe_framebuffer_state - 96 - > 80 bytes

Marek Olšák mareko at kemper.freedesktop.org
Tue Apr 4 10:17:55 UTC 2017


Module: Mesa
Branch: master
Commit: eb0fd0e5f860d0bc1e1108049481e1773242e09e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb0fd0e5f860d0bc1e1108049481e1773242e09e

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Apr  2 01:27:13 2017 +0200

gallium: decrease the size of pipe_framebuffer_state - 96 -> 80 bytes

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/include/pipe/p_state.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 54bcf07868..62f5192679 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 */




More information about the mesa-commit mailing list