From: Marek Olšák <marek.ol...@amd.com> --- src/gallium/include/pipe/p_state.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 62f5192..a4692b6 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -400,29 +400,28 @@ union pipe_surface_desc { } buf; }; /** * A view into a texture that can be bound to a color render target / * depth stencil attachment point. */ 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; }; /** * A view into a texture that can be bound to a shader stage. */ struct pipe_sampler_view { -- 2.7.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev