diff options
author | Axel Davy <[email protected]> | 2016-05-07 16:14:00 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-10-10 23:43:49 +0200 |
commit | f090705075201c16664caa613bec244053404bbb (patch) | |
tree | 654cea557b3c49aa91840583b39f11c093f87e9a /src/gallium/state_trackers/nine/swapchain9.h | |
parent | a719800cb82c3634e48843c4348c533ed29381d3 (diff) |
st/nine: Use fixed size arrays for swapchain buffers
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9.h')
-rw-r--r-- | src/gallium/state_trackers/nine/swapchain9.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/nine/swapchain9.h b/src/gallium/state_trackers/nine/swapchain9.h index f3efe268239..551c74486e3 100644 --- a/src/gallium/state_trackers/nine/swapchain9.h +++ b/src/gallium/state_trackers/nine/swapchain9.h @@ -55,9 +55,9 @@ struct NineSwapChain9 BOOL implicit; /* buffer handles */ - struct NineSurface9 **buffers; /* 0 to BackBufferCount-1 : the back buffers. BackBufferCount : additional buffer */ - struct pipe_resource **present_buffers; - D3DWindowBuffer **present_handles; + struct NineSurface9 *buffers[D3DPRESENT_BACK_BUFFERS_MAX_EX + 1]; /* 0 to BackBufferCount-1 : the back buffers. BackBufferCount : additional buffer */ + struct pipe_resource *present_buffers[D3DPRESENT_BACK_BUFFERS_MAX_EX + 1]; + D3DWindowBuffer *present_handles[D3DPRESENT_BACK_BUFFERS_MAX_EX + 1]; struct pipe_fence_handle *swap_fences[DRI_SWAP_FENCES_MAX]; unsigned int cur_fences; @@ -72,7 +72,7 @@ struct NineSwapChain9 D3DGAMMARAMP gamma; struct threadpool *pool; - struct threadpool_task **tasks; + struct threadpool_task *tasks[D3DPRESENT_BACK_BUFFERS_MAX_EX + 1]; BOOL enable_threadpool; }; |