aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_defines.h
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-03-14 21:26:19 +0100
committerAxel Davy <[email protected]>2016-10-10 23:43:48 +0200
commit39e98d351f84b3052c59dc97b28936e22918f9d3 (patch)
tree40442db007efdc522602f4cf66f884ee20d2f081 /src/gallium/state_trackers/nine/nine_defines.h
parent2290eac84ef0c80a6e60cafac8ed0fb8f8a4ca93 (diff)
st/nine: Unify some check flags
The new defines will be reused in a later patch. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_defines.h')
-rw-r--r--src/gallium/state_trackers/nine/nine_defines.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/nine_defines.h b/src/gallium/state_trackers/nine/nine_defines.h
index 4f61982a724..26aa064b1ac 100644
--- a/src/gallium/state_trackers/nine/nine_defines.h
+++ b/src/gallium/state_trackers/nine/nine_defines.h
@@ -54,4 +54,12 @@ uint16_t nine_d3d9_to_nine_declusage(unsigned usage, unsigned index);
#define NINED3DCLEAR_DEPTHSTENCIL (D3DCLEAR_ZBUFFER | D3DCLEAR_STENCIL)
+#define NINE_BIND_BACKBUFFER_FLAGS (PIPE_BIND_RENDER_TARGET |\
+ PIPE_BIND_SAMPLER_VIEW)
+
+#define NINE_BIND_PRESENTBUFFER_FLAGS (PIPE_BIND_RENDER_TARGET |\
+ PIPE_BIND_DISPLAY_TARGET |\
+ PIPE_BIND_SCANOUT |\
+ PIPE_BIND_SHARED)
+
#endif /* _NINE_DEFINES_H_ */