1bf215546Sopenharmony_ci/********************************************************** 2bf215546Sopenharmony_ci * Copyright 2009-2011 VMware, Inc. All rights reserved. 3bf215546Sopenharmony_ci * 4bf215546Sopenharmony_ci * Permission is hereby granted, free of charge, to any person 5bf215546Sopenharmony_ci * obtaining a copy of this software and associated documentation 6bf215546Sopenharmony_ci * files (the "Software"), to deal in the Software without 7bf215546Sopenharmony_ci * restriction, including without limitation the rights to use, copy, 8bf215546Sopenharmony_ci * modify, merge, publish, distribute, sublicense, and/or sell copies 9bf215546Sopenharmony_ci * of the Software, and to permit persons to whom the Software is 10bf215546Sopenharmony_ci * furnished to do so, subject to the following conditions: 11bf215546Sopenharmony_ci * 12bf215546Sopenharmony_ci * The above copyright notice and this permission notice shall be 13bf215546Sopenharmony_ci * included in all copies or substantial portions of the Software. 14bf215546Sopenharmony_ci * 15bf215546Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16bf215546Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17bf215546Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18bf215546Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 19bf215546Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20bf215546Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21bf215546Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22bf215546Sopenharmony_ci * SOFTWARE. 23bf215546Sopenharmony_ci * 24bf215546Sopenharmony_ci ********************************************************* 25bf215546Sopenharmony_ci * Authors: 26bf215546Sopenharmony_ci * Zack Rusin <zackr-at-vmware-dot-com> 27bf215546Sopenharmony_ci * Thomas Hellstrom <thellstrom-at-vmware-dot-com> 28bf215546Sopenharmony_ci */ 29bf215546Sopenharmony_ci 30bf215546Sopenharmony_ciThe XA gallium frontend is intended as a versioned interface to gallium for 31bf215546Sopenharmony_cixorg driver writers. Initially it's mostly based on Zack Rusin's 32bf215546Sopenharmony_cicomposite / video work for the Xorg gallium frontend. 33bf215546Sopenharmony_ci 34bf215546Sopenharmony_ciThe motivation behind this gallium frontend is that the Xorg gallium frontend has 35bf215546Sopenharmony_cia number of interfaces to work with: 36bf215546Sopenharmony_ci 37bf215546Sopenharmony_ci1) The Xorg sdk (versioned) 38bf215546Sopenharmony_ci2) Gallium3D (not versioned) 39bf215546Sopenharmony_ci3) KMS modesetting (versioned) 40bf215546Sopenharmony_ci4) Driver-private (hopefully versioned) 41bf215546Sopenharmony_ci 42bf215546Sopenharmony_ciSince Gallium3D is not versioned, the Xorg gallium frontend needs to be compiled 43bf215546Sopenharmony_ciwith Gallium, but it's really beneficial to be able to compile xorg drivers 44bf215546Sopenharmony_cistandalone. 45bf215546Sopenharmony_ci 46bf215546Sopenharmony_ciTherefore the xa gallium frontend is intended to supply the following 47bf215546Sopenharmony_cifunctionality: 48bf215546Sopenharmony_ci 49bf215546Sopenharmony_ci1) Versioning. 50bf215546Sopenharmony_ci2) Surface functionality (creation and copying for a basic dri2 implementation) 51bf215546Sopenharmony_ci3) YUV blits for textured Xv. 52bf215546Sopenharmony_ci4) Solid fills without ROP functionality. 53bf215546Sopenharmony_ci5) Copies with format conversion and - reinterpretation but without ROP 54bf215546Sopenharmony_ci6) Xrender- type compositing for general acceleration. 55bf215546Sopenharmony_ci 56bf215546Sopenharmony_ci 57bf215546Sopenharmony_ciThe first user will be the vmwgfx xorg driver. When there are more users, 58bf215546Sopenharmony_ciwe need to be able to load the appropriate gallium pipe driver, and we 59bf215546Sopenharmony_cishould investigate sharing the loadig mechanism with the EGL gallium frontend. 60bf215546Sopenharmony_ci 61bf215546Sopenharmony_ciIMPORTANT: 62bf215546Sopenharmony_ciVersion compatibilities: 63bf215546Sopenharmony_ciWhile this library remains OUTSIDE any mesa release branch, 64bf215546Sopenharmony_ciand the major version number is still 0. Any minor bump should be viewed as 65bf215546Sopenharmony_cian incompatibility event, and any user of this library should test for that 66bf215546Sopenharmony_ciand refuse to use the library if minor versions differ. 67bf215546Sopenharmony_ciAs soon as the library enters a mesa release branch, if not earlier, major 68bf215546Sopenharmony_ciwill be bumped to 1, and normal incompatibility rules (major bump) 69bf215546Sopenharmony_ciwill be followed. 70bf215546Sopenharmony_ciIt is allowed to add function interfaces while only bumping minor. Any 71bf215546Sopenharmony_ciuser that uses these function interfaces must therefore use lazy symbol 72bf215546Sopenharmony_cilookups and test minor for compatibility before using such a function. 73