From 39e98d351f84b3052c59dc97b28936e22918f9d3 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Mon, 14 Mar 2016 21:26:19 +0100 Subject: st/nine: Unify some check flags The new defines will be reused in a later patch. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_defines.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/state_trackers/nine/nine_defines.h') 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_ */ -- cgit v1.2.3