summaryrefslogtreecommitdiff
path: root/lib/mesa/include/d3dadapter
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:46:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:46:45 +0000
commit3e40341f9dcd7c1bbc9afb8ddb812304820396cf (patch)
tree274b3f522afe1da16ab2b5347758c908bc23fac4 /lib/mesa/include/d3dadapter
parent7b644ad52b574bec410d557155d666ac17fdf51a (diff)
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/include/d3dadapter')
-rw-r--r--lib/mesa/include/d3dadapter/present.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/lib/mesa/include/d3dadapter/present.h b/lib/mesa/include/d3dadapter/present.h
index 95e8d679e..08a972972 100644
--- a/lib/mesa/include/d3dadapter/present.h
+++ b/lib/mesa/include/d3dadapter/present.h
@@ -35,22 +35,6 @@ typedef struct ID3DPresentGroup ID3DPresentGroup;
typedef struct ID3DAdapter9 ID3DAdapter9;
typedef struct D3DWindowBuffer D3DWindowBuffer;
-/* Available since version 1.3 */
-typedef struct _D3DPRESENT_PARAMETERS2_ {
- /* Whether D3DSWAPEFFECT_DISCARD is allowed to release the
- * D3DWindowBuffers in any order, and eventually with a delay.
- * FALSE (Default): buffers should be released as soon as possible.
- * TRUE: it is allowed to release some buffers with a delay, and in
- * a random order. */
- BOOL AllowDISCARDDelayedRelease;
- /* User preference for D3DSWAPEFFECT_DISCARD with D3DPRESENT_INTERVAL_IMMEDIATE.
- * FALSE (Default): User prefers presentation to occur as soon as possible,
- * with potential tearings.
- * TRUE: User prefers presentation to be tear free. Requires
- * AllowDISCARDDelayedRelease to have any effect. */
- BOOL TearFreeDISCARD;
-} D3DPRESENT_PARAMETERS2, *PD3DPRESENT_PARAMETERS2, *LPD3DPRESENT_PARAMETERS2;
-
/* Presentation backend for drivers to display their brilliant work */
typedef struct ID3DPresentVtbl
{
@@ -70,10 +54,7 @@ typedef struct ID3DPresentVtbl
HRESULT (WINAPI *DestroyD3DWindowBuffer)(ID3DPresent *This, D3DWindowBuffer *buffer);
/* After presenting a buffer to the window system, the buffer
* may be used as is (no copy of the content) by the window system.
- * You must not use a non-released buffer, else the user may see undefined content.
- * Note: This function waits as well that the buffer content was displayed (this
- * can be after the release of the buffer if the window system decided to make
- * an internal copy and release early. */
+ * You must not use a non-released buffer, else the user may see undefined content. */
HRESULT (WINAPI *WaitBufferReleased)(ID3DPresent *This, D3DWindowBuffer *buffer);
HRESULT (WINAPI *FrontBufferCopy)(ID3DPresent *This, D3DWindowBuffer *buffer);
/* It is possible to do partial copy, but impossible to do resizing, which must
@@ -88,17 +69,6 @@ typedef struct ID3DPresentVtbl
HRESULT (WINAPI *SetCursor)(ID3DPresent *This, void *pBitmap, POINT *pHotspot, BOOL bShow);
HRESULT (WINAPI *SetGammaRamp)(ID3DPresent *This, const D3DGAMMARAMP *pRamp, HWND hWndOverride);
HRESULT (WINAPI *GetWindowInfo)(ID3DPresent *This, HWND hWnd, int *width, int *height, int *depth);
- /* Available since version 1.1 */
- BOOL (WINAPI *GetWindowOccluded)(ID3DPresent *This);
- /* Available since version 1.2 */
- BOOL (WINAPI *ResolutionMismatch)(ID3DPresent *This);
- HANDLE (WINAPI *CreateThread)(ID3DPresent *This, void *pThreadfunc, void *pParam);
- BOOL (WINAPI *WaitForThread)(ID3DPresent *This, HANDLE thread);
- /* Available since version 1.3 */
- HRESULT (WINAPI *SetPresentParameters2)(ID3DPresent *This, D3DPRESENT_PARAMETERS2 *pParameters);
- BOOL (WINAPI *IsBufferReleased)(ID3DPresent *This, D3DWindowBuffer *buffer);
- /* Wait a buffer gets released. */
- HRESULT (WINAPI *WaitBufferReleaseEvent)(ID3DPresent *This);
} ID3DPresentVtbl;
struct ID3DPresent
@@ -126,13 +96,6 @@ struct ID3DPresent
#define ID3DPresent_SetCursor(p,a,b,c) (p)->lpVtbl->SetCursor(p,a,b,c)
#define ID3DPresent_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
#define ID3DPresent_GetWindowInfo(p,a,b,c,d) (p)->lpVtbl->GetWindowSize(p,a,b,c,d)
-#define ID3DPresent_GetWindowOccluded(p) (p)->lpVtbl->GetWindowOccluded(p)
-#define ID3DPresent_ResolutionMismatch(p) (p)->lpVtbl->ResolutionMismatch(p)
-#define ID3DPresent_CreateThread(p,a,b) (p)->lpVtbl->CreateThread(p,a,b)
-#define ID3DPresent_WaitForThread(p,a) (p)->lpVtbl->WaitForThread(p,a)
-#define ID3DPresent_SetPresentParameters2(p,a) (p)->lpVtbl->SetPresentParameters2(p,a)
-#define ID3DPresent_IsBufferReleased(p,a) (p)->lpVtbl->IsBufferReleased(p,a)
-#define ID3DPresent_WaitBufferReleaseEvent(p) (p)->lpVtbl->WaitBufferReleaseEvent(p)
typedef struct ID3DPresentGroupVtbl
{