blob: 156a0b63ca58695ea7169b0257ced73d481f5698 [file] [log] [blame]
Chia-I Wu41858c82015-04-04 16:39:25 +08001/*
2 * XGL
3 *
4 * Copyright (C) 2015 LunarG, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
23 *
24 * Authors:
25 * Chia-I Wu <olv@lunarg.com>
26 */
27
28#include "wsi.h"
29
30XGL_RESULT intel_wsi_gpu_get_info(struct intel_gpu *gpu,
31 XGL_PHYSICAL_GPU_INFO_TYPE type,
32 size_t *size, void *data)
33{
34 return XGL_ERROR_INVALID_VALUE;
35}
36
37void intel_wsi_gpu_cleanup(struct intel_gpu *gpu)
38{
39}
40
41XGL_RESULT intel_wsi_img_init(struct intel_img *img)
42{
43 return XGL_SUCCESS;
44}
45
46void intel_wsi_img_cleanup(struct intel_img *img)
47{
48}
49
50XGL_RESULT intel_wsi_fence_init(struct intel_fence *fence)
51{
52 return XGL_SUCCESS;
53}
54
55void intel_wsi_fence_cleanup(struct intel_fence *fence)
56{
57}
58
59void intel_wsi_fence_copy(struct intel_fence *fence,
60 const struct intel_fence *src)
61{
62}
63
64XGL_RESULT intel_wsi_fence_wait(struct intel_fence *fence,
65 int64_t timeout_ns)
66{
67 return XGL_SUCCESS;
68}
69
70ICD_EXPORT XGL_RESULT XGLAPI xglWsiX11AssociateConnection(
71 XGL_PHYSICAL_GPU gpu_,
72 const XGL_WSI_X11_CONNECTION_INFO* pConnectionInfo)
73{
74 return XGL_ERROR_UNKNOWN;
75}
76
77ICD_EXPORT XGL_RESULT XGLAPI xglWsiX11GetMSC(
78 XGL_DEVICE device,
79 xcb_window_t window,
80 xcb_randr_crtc_t crtc,
81 uint64_t * pMsc)
82{
83 return XGL_ERROR_UNKNOWN;
84}
85
86ICD_EXPORT XGL_RESULT XGLAPI xglWsiX11CreatePresentableImage(
87 XGL_DEVICE device,
88 const XGL_WSI_X11_PRESENTABLE_IMAGE_CREATE_INFO* pCreateInfo,
89 XGL_IMAGE* pImage,
90 XGL_GPU_MEMORY* pMem)
91{
92 return XGL_ERROR_UNKNOWN;
93}
94
95ICD_EXPORT XGL_RESULT XGLAPI xglWsiX11QueuePresent(
96 XGL_QUEUE queue_,
97 const XGL_WSI_X11_PRESENT_INFO* pPresentInfo,
98 XGL_FENCE fence_)
99{
100 return XGL_ERROR_UNKNOWN;
101}