blob: 5abe9fb53ca8ad0e4c553ef725995ad6144fd90c [file] [log] [blame]
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -06001/*
2 * XGL
3 *
4 * Copyright (C) 2014 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
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -060025#include "shader.h"
Chia-I Wued833872014-08-23 17:00:35 +080026#include "pipeline_priv.h"
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -060027#include "genhw/genhw.h"
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060028#include "genhw/gen_render_3d.xml.h"
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060029
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -060030static XGL_RESULT pipeline_ia_state(struct intel_dev *dev, struct intel_pipeline *pipeline,
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060031 const XGL_PIPELINE_IA_STATE_CREATE_INFO* ia_state)
32{
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -060033 pipeline->ia_state = *ia_state;
34
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060035 if (ia_state->provokingVertex == XGL_PROVOKING_VERTEX_FIRST) {
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060036 pipeline->provoking_vertex_tri = 0;
37 pipeline->provoking_vertex_trifan = 1;
38 pipeline->provoking_vertex_line = 0;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060039 } else {
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060040 pipeline->provoking_vertex_tri = 2;
41 pipeline->provoking_vertex_trifan = 2;
42 pipeline->provoking_vertex_line = 1;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060043 }
44
45 switch (ia_state->topology) {
46 case XGL_TOPOLOGY_POINT_LIST:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060047 pipeline->prim_type = GEN6_3DPRIM_POINTLIST;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060048 break;
49 case XGL_TOPOLOGY_LINE_LIST:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060050 pipeline->prim_type = GEN6_3DPRIM_LINELIST;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060051 break;
52 case XGL_TOPOLOGY_LINE_STRIP:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060053 pipeline->prim_type = GEN6_3DPRIM_LINESTRIP;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060054 break;
55 case XGL_TOPOLOGY_TRIANGLE_LIST:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060056 pipeline->prim_type = GEN6_3DPRIM_TRILIST;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060057 break;
58 case XGL_TOPOLOGY_TRIANGLE_STRIP:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060059 pipeline->prim_type = GEN6_3DPRIM_TRISTRIP;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060060 break;
61 case XGL_TOPOLOGY_RECT_LIST:
62 /*
63 * TODO: Rect lists are special in XGL, do we need to do
64 * something special here?
65 * XGL Guide:
66 * The rectangle list is a special geometry primitive type
67 * that can be used for implementing post-processing techniques
68 * or efficient copy operations. There are some special limitations
69 * for rectangle primitives. They cannot be clipped, must
70 * be axis aligned and cannot have depth gradient.
71 * Failure to comply with these restrictions results in
72 * undefined rendering results.
73 */
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060074 pipeline->prim_type = GEN6_3DPRIM_RECTLIST;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060075 break;
76 case XGL_TOPOLOGY_QUAD_LIST:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060077 pipeline->prim_type = GEN6_3DPRIM_QUADLIST;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060078 break;
79 case XGL_TOPOLOGY_QUAD_STRIP:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060080 pipeline->prim_type = GEN6_3DPRIM_QUADSTRIP;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060081 break;
82 case XGL_TOPOLOGY_LINE_LIST_ADJ:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060083 pipeline->prim_type = GEN6_3DPRIM_LINELIST_ADJ;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060084 break;
85 case XGL_TOPOLOGY_LINE_STRIP_ADJ:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060086 pipeline->prim_type = GEN6_3DPRIM_LINESTRIP_ADJ;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060087 break;
88 case XGL_TOPOLOGY_TRIANGLE_LIST_ADJ:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060089 pipeline->prim_type = GEN6_3DPRIM_TRILIST_ADJ;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060090 break;
91 case XGL_TOPOLOGY_TRIANGLE_STRIP_ADJ:
Courtney Goeltzenleuchter8a3de592014-08-22 09:09:46 -060092 pipeline->prim_type = GEN6_3DPRIM_TRISTRIP_ADJ;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060093 break;
94 case XGL_TOPOLOGY_PATCH:
95 // TODO: implement something here
96 break;
97 default:
98 return XGL_ERROR_BAD_PIPELINE_DATA;
99 }
100
101 if (ia_state->primitiveRestartEnable) {
102 pipeline->primitive_restart = true;
103 pipeline->primitive_restart_index = ia_state->primitiveRestartIndex;
104 } else {
105 pipeline->primitive_restart = false;
106 }
107
108 if (ia_state->disableVertexReuse) {
109 // TODO: What do we do to disable vertex reuse?
110 }
111
112 return XGL_SUCCESS;
113}
114
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600115static XGL_RESULT pipeline_rs_state(struct intel_dev *dev, struct intel_pipeline *pipeline,
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600116 const XGL_PIPELINE_RS_STATE_CREATE_INFO* rs_state)
117{
118 pipeline->depthClipEnable = rs_state->depthClipEnable;
119 pipeline->rasterizerDiscardEnable = rs_state->rasterizerDiscardEnable;
120 pipeline->pointSize = rs_state->pointSize;
121 return XGL_SUCCESS;
122}
123
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600124static void pipeline_destroy(struct intel_obj *obj)
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600125{
126 struct intel_pipeline *pipeline = intel_pipeline_from_obj(obj);
127
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600128 if (pipeline->active_shaders & SHADER_VERTEX_FLAG) {
129 icd_free(intel_shader(pipeline->intel_vs.pCode));
130 }
131 if (pipeline->active_shaders & SHADER_GEOMETRY_FLAG) {
132 icd_free(intel_shader(pipeline->gs.pCode));
133 }
134 if (pipeline->active_shaders & SHADER_FRAGMENT_FLAG) {
135 icd_free(intel_shader(pipeline->intel_fs.pCode));
136 }
137 if (pipeline->active_shaders & SHADER_TESS_CONTROL_FLAG) {
138 icd_free(intel_shader(pipeline->tess_control.pCode));
139 }
140 if (pipeline->active_shaders & SHADER_TESS_EVAL_FLAG) {
141 icd_free(intel_shader(pipeline->tess_eval.pCode));
142 }
143
Chia-I Wued833872014-08-23 17:00:35 +0800144 if (pipeline->vs_rmap)
145 intel_rmap_destroy(pipeline->vs_rmap);
146 if (pipeline->fs_rmap)
147 intel_rmap_destroy(pipeline->fs_rmap);
148
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600149 intel_base_destroy(&pipeline->obj.base);
150}
151
152XGL_RESULT XGLAPI intelCreateGraphicsPipeline(
153 XGL_DEVICE device,
154 const XGL_GRAPHICS_PIPELINE_CREATE_INFO* pCreateInfo,
155 XGL_PIPELINE* pPipeline)
156{
157 union {
158 const void *ptr;
159 const struct {
160 XGL_STRUCTURE_TYPE struct_type;
161 XGL_VOID *next;
162 } *header;
163 const XGL_GRAPHICS_PIPELINE_CREATE_INFO* graphics_pipeline;
164 const XGL_PIPELINE_IA_STATE_CREATE_INFO* ia_state;
165 const XGL_PIPELINE_DB_STATE_CREATE_INFO* db_state;
166 const XGL_PIPELINE_CB_STATE* cb_state;
167 const XGL_PIPELINE_RS_STATE_CREATE_INFO* rs_state;
168 const XGL_PIPELINE_TESS_STATE_CREATE_INFO* tess_state;
169 const XGL_PIPELINE_SHADER_STAGE_CREATE_INFO* shader_state;
170 } info = { .ptr = pCreateInfo };
171 struct intel_dev *dev = intel_dev(device);
172 struct intel_pipeline *pipeline;
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600173 struct intel_shader *shader;
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600174 const XGL_PIPELINE_SHADER* shader_state;
175 void *shaderCode;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600176 XGL_RESULT result;
177
178 pipeline = (struct intel_pipeline *) intel_base_create(dev, sizeof(*pipeline),
179 dev->base.dbg, XGL_DBG_OBJECT_GRAPHICS_PIPELINE, pCreateInfo, 0);
180 if (!pipeline) {
181 return XGL_ERROR_OUT_OF_MEMORY;
182 }
183
184 pipeline->dev = dev;
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600185 pipeline->obj.destroy = pipeline_destroy;
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600186 pipeline->total_size = 0;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600187
188 do {
189 result = XGL_SUCCESS;
190
191 switch (info.header->struct_type) {
192 case XGL_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO:
193 // TODO: Should not see Compute Pipeline structs processing CreateGraphicsPipeline
194 return XGL_ERROR_BAD_PIPELINE_DATA;
195
196 case XGL_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO:
197 if (info.graphics_pipeline->flags & XGL_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT) {
198 // TODO: process disable optimization.
199 }
200 break;
201
202 case XGL_STRUCTURE_TYPE_PIPELINE_IA_STATE_CREATE_INFO:
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600203 result = pipeline_ia_state(dev, pipeline, info.ia_state);
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600204 break;
205
206 case XGL_STRUCTURE_TYPE_PIPELINE_DB_STATE_CREATE_INFO:
207 pipeline->db_format = info.db_state->format;
208 break;
209
210 case XGL_STRUCTURE_TYPE_PIPELINE_CB_STATE_CREATE_INFO:
211 pipeline->cb_state = *info.cb_state;
212 break;
213
214 case XGL_STRUCTURE_TYPE_PIPELINE_RS_STATE_CREATE_INFO:
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600215 result = pipeline_rs_state(dev, pipeline, info.rs_state);
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600216 break;
217
218 case XGL_STRUCTURE_TYPE_PIPELINE_TESS_STATE_CREATE_INFO:
219 pipeline->tess_state = *info.tess_state;
220 break;
221
222 case XGL_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600223 shader_state = &info.shader_state->shader;
224 shader = intel_shader(shader_state->shader);
225
226 // TODO: process shader object and include in pipeline
227 // For now that processing is simply a copy so that the app
228 // can destroy the original shader object after pipeline creation.
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800229 shaderCode = (void *) icd_alloc(shader->ir->size, 4, XGL_SYSTEM_ALLOC_INTERNAL_SHADER);
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600230 if (!shaderCode) {
231 result = XGL_ERROR_OUT_OF_MEMORY;
232 goto error_exit;
233 }
234
235 switch (shader_state->stage) {
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600236 case XGL_SHADER_STAGE_VERTEX:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600237 /*
238 * TODO: What should we do here?
239 * shader_state (XGL_PIPELINE_SHADER) contains links
240 * to application memory in the pLinkConstBufferInfo and
241 * it's pBufferData pointers. Do we need to bring all that
242 * into the driver or is it okay to rely on those references
243 * holding good data. In OpenGL we'd make a driver copy. Not
244 * as clear for XGL.
245 * For now, use the app pointers.
246 */
247 pipeline->vs = *shader_state;
248 pipeline->intel_vs.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800249 pipeline->intel_vs.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600250 pipeline->active_shaders |= SHADER_VERTEX_FLAG;
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600251 pipeline->vs_rmap = intel_rmap_create(dev,
252 &shader_state->descriptorSetMapping[0],
253 &shader_state->dynamicMemoryViewMapping, 0);
254 if (!pipeline->vs_rmap) {
255 result = XGL_ERROR_OUT_OF_MEMORY;
256 goto error_exit;
257 }
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600258 break;
259 case XGL_SHADER_STAGE_GEOMETRY:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600260 pipeline->gs.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800261 pipeline->gs.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600262 pipeline->active_shaders |= SHADER_GEOMETRY_FLAG;
263 break;
264 case XGL_SHADER_STAGE_FRAGMENT:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600265 pipeline->fs = *shader_state;
266 pipeline->intel_fs.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800267 pipeline->intel_fs.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600268 pipeline->active_shaders |= SHADER_FRAGMENT_FLAG;
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600269 /* assuming one RT; need to parse the shader */
270 pipeline->fs_rmap = intel_rmap_create(dev,
271 &shader_state->descriptorSetMapping[0],
272 &shader_state->dynamicMemoryViewMapping, 1);
273 if (!pipeline->fs_rmap) {
274 result = XGL_ERROR_OUT_OF_MEMORY;
275 goto error_exit;
276 }
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600277 break;
278 case XGL_SHADER_STAGE_TESS_CONTROL:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600279 pipeline->tess_control.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800280 pipeline->tess_control.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600281 pipeline->active_shaders |= SHADER_TESS_CONTROL_FLAG;
282 break;
283 case XGL_SHADER_STAGE_TESS_EVALUATION:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600284 pipeline->tess_eval.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800285 pipeline->tess_eval.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600286 pipeline->active_shaders |= SHADER_TESS_EVAL_FLAG;
287 break;
288 case XGL_SHADER_STAGE_COMPUTE:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600289 pipeline->compute.pCode = shaderCode;
Chia-I Wu9194a6d2014-08-28 11:36:48 +0800290 pipeline->compute.codeSize = shader->ir->size;
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600291 pipeline->active_shaders |= SHADER_COMPUTE_FLAG;
292 break;
293 default:
294 // TODO: Log debug message
295 result = XGL_ERROR_BAD_PIPELINE_DATA;
296 goto error_exit;
297 }
298 break;
299
300 default:
301 // TODO: Log debug message
302 result = XGL_ERROR_BAD_PIPELINE_DATA;
303 goto error_exit;
304 }
305
306 if (result != XGL_SUCCESS) {
307 // TODO: What needs to happen if pipeline build fails?
308 goto error_exit;
309 }
310 info.ptr = info.header->next;
311 } while (info.ptr != NULL);
312
313 /*
314 * Validate required elements
315 */
316 if (!(pipeline->active_shaders & SHADER_VERTEX_FLAG)) {
317 // TODO: Log debug message: Vertex Shader required.
318 result = XGL_ERROR_BAD_PIPELINE_DATA;
319 goto error_exit;
320 }
321
322 /*
323 * Tessalation control and evaluation have to both have a shader defined or
324 * neither should have a shader defined.
325 */
326 if (((pipeline->active_shaders & SHADER_TESS_CONTROL_FLAG) == 0) !=
327 ((pipeline->active_shaders & SHADER_TESS_EVAL_FLAG) == 0) ) {
328 // TODO: Log debug message: Both Tess control and Tess eval are required to use tessalation
329 result = XGL_ERROR_BAD_PIPELINE_DATA;
330 goto error_exit;
331 }
332
333 if ((pipeline->active_shaders & SHADER_COMPUTE_FLAG) &&
334 (pipeline->active_shaders & (SHADER_VERTEX_FLAG | SHADER_TESS_CONTROL_FLAG |
335 SHADER_TESS_EVAL_FLAG | SHADER_GEOMETRY_FLAG |
336 SHADER_FRAGMENT_FLAG))) {
337 // TODO: Log debug message: Can only specify compute shader when doing compute
338 result = XGL_ERROR_BAD_PIPELINE_DATA;
339 goto error_exit;
340 }
341
342 /*
Courtney Goeltzenleuchter42509992014-08-21 17:33:46 -0600343 * XGL_TOPOLOGY_PATCH primitive topology is only valid for tessellation pipelines.
344 * Mismatching primitive topology and tessellation fails graphics pipeline creation.
345 */
346 if (pipeline->active_shaders & (SHADER_TESS_CONTROL_FLAG | SHADER_TESS_EVAL_FLAG) &&
347 (pipeline->ia_state.topology != XGL_TOPOLOGY_PATCH)) {
348 // TODO: Log debug message: Invalid topology used with tessalation shader.
349 result = XGL_ERROR_BAD_PIPELINE_DATA;
350 goto error_exit;
351 }
352
353 if ((pipeline->ia_state.topology == XGL_TOPOLOGY_PATCH) &&
354 (pipeline->active_shaders & ~(SHADER_TESS_CONTROL_FLAG | SHADER_TESS_EVAL_FLAG))) {
355 // TODO: Log debug message: Cannot use TOPOLOGY_PATCH on non-tessalation shader.
356 result = XGL_ERROR_BAD_PIPELINE_DATA;
357 goto error_exit;
358 }
359
360 /*
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600361 * Now compile everything into a pipeline object ready for the HW.
362 */
363
364 *pPipeline = pipeline;
365
366 return XGL_SUCCESS;
367
368error_exit:
Courtney Goeltzenleuchterd85c1d62014-08-27 14:04:53 -0600369 pipeline_destroy(&pipeline->obj);
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600370 return result;
371}
372
373XGL_RESULT XGLAPI intelCreateComputePipeline(
374 XGL_DEVICE device,
375 const XGL_COMPUTE_PIPELINE_CREATE_INFO* pCreateInfo,
376 XGL_PIPELINE* pPipeline)
377{
378 return XGL_ERROR_UNAVAILABLE;
379}
380
381XGL_RESULT XGLAPI intelStorePipeline(
382 XGL_PIPELINE pipeline,
383 XGL_SIZE* pDataSize,
384 XGL_VOID* pData)
385{
386 return XGL_ERROR_UNAVAILABLE;
387}
388
389XGL_RESULT XGLAPI intelLoadPipeline(
390 XGL_DEVICE device,
391 XGL_SIZE dataSize,
392 const XGL_VOID* pData,
393 XGL_PIPELINE* pPipeline)
394{
395 return XGL_ERROR_UNAVAILABLE;
396}
397
398XGL_RESULT XGLAPI intelCreatePipelineDelta(
399 XGL_DEVICE device,
400 XGL_PIPELINE p1,
401 XGL_PIPELINE p2,
402 XGL_PIPELINE_DELTA* delta)
403{
404 return XGL_ERROR_UNAVAILABLE;
405}