[Mesa-dev] [PATCH 02/12] gallium: un-inline pipe_surface_desc
Rob Clark
robdclark at gmail.com
Sat Jul 2 16:52:05 UTC 2016
Want to re-use this struct, so un-inline it.
Signed-off-by: Rob Clark <robdclark at gmail.com>
---
src/gallium/include/pipe/p_state.h | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index f4bee38..ad7bf0f 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -387,6 +387,17 @@ struct pipe_sampler_state
union pipe_color_union border_color;
};
+union pipe_surface_desc {
+ struct {
+ unsigned level;
+ unsigned first_layer:16;
+ unsigned last_layer:16;
+ } tex;
+ struct {
+ unsigned first_element;
+ unsigned last_element;
+ } buf;
+};
/**
* A view into a texture that can be bound to a color render target /
@@ -405,17 +416,7 @@ struct pipe_surface
unsigned writable:1; /**< writable shader resource */
- union {
- struct {
- unsigned level;
- unsigned first_layer:16;
- unsigned last_layer:16;
- } tex;
- struct {
- unsigned first_element;
- unsigned last_element;
- } buf;
- } u;
+ union pipe_surface_desc u;
};
--
2.7.4
More information about the mesa-dev
mailing list