[Mesa-dev] [PATCH 3/9] gallium: decrease the size of pipe_framebuffer_state - 96 -> 80 bytes
Marek Olšák
maraeo at gmail.com
Sun Apr 2 18:00:24 UTC 2017
From: Marek Olšák <marek.olsak at amd.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 54bcf07..62f5192 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -348,26 +348,26 @@ struct pipe_stencil_ref
/**
* Note that pipe_surfaces are "texture views for rendering"
* and so in the case of ARB_framebuffer_no_attachment there
* is no pipe_surface state available such that we may
* extract the number of samples and layers.
*/
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 */
};
/**
* Texture sampler state.
*/
struct pipe_sampler_state
--
2.7.4
More information about the mesa-dev
mailing list