summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-06-26 13:56:42 -0400
committerRob Clark <robdclark@gmail.com>2016-07-06 10:17:30 -0400
commit09fe35b450ed15b3cfc956304e96723b4c600ad8 (patch)
tree18e4a1bcdd30a9b9690f2f45aff92cd90d1c4c8a /src/gallium/include
parentdef044376a6d15d992fd8e0d9a63c40a9f509c78 (diff)
downloadexternal_mesa3d-09fe35b450ed15b3cfc956304e96723b4c600ad8.zip
external_mesa3d-09fe35b450ed15b3cfc956304e96723b4c600ad8.tar.gz
external_mesa3d-09fe35b450ed15b3cfc956304e96723b4c600ad8.tar.bz2
gallium: un-inline pipe_surface_desc
Want to re-use this struct, so un-inline it. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_state.h23
1 files 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;
};