blob: 972f493b760702dac655e15a36a0301220c033d0 [file] [log] [blame] [view]
JensOwen786bcc62014-11-01 09:28:29 -06001# Explicit GL (XGL) Ecosystem Components
Jens Owenf27b4542014-12-17 11:58:21 -07002*Version 0.7, 17 Dec 2014*
Courtney Goeltzenleuchter21f8ea52014-09-01 17:18:57 -06003
Jens Owenf27b4542014-12-17 11:58:21 -07004This project provides *open source* tools for XGL Developers.
Courtney Goeltzenleuchter21f8ea52014-09-01 17:18:57 -06005
JensOwen95c62272014-11-01 13:05:43 -06006## Introduction
7
Jens Owen9fc73fc2014-12-17 12:03:04 -07008XGL is an Explicit API, enabling direct control over how GPUs actually work. No validation, shader recompilation, memory management or synchronization is done inside an XGL driver. Applications have full control and responsibility. Any errors in how XGL is used are likely to result in a crash. This project provides layered utility libraries to ease development and help guide developers to proven safe patterns.
Jens Owenf27b4542014-12-17 11:58:21 -07009
10New with XGL in an extensible layered architecture that enables significant innovation in tools:
11- Cross IHV support enables tools vendors to plug into a common, extensible layer architecture
12- Layered tools during development enable validating, debugging and profiling without production performance impact
13- Modular validation architecture encourages many fine-grained layers--and new layers can be added easily
14- Encourages open community of tool developers: led by Valve, LunarG, Codeplay and others
15- Customized interactive debugging and validation layers will be available together with first drivers
16
JensOwen95c62272014-11-01 13:05:43 -060017The components here are being shared with the Khronos community to provide
18early insights into the specification of XGL and to assists those doing
19prototyping at this point.
JensOwen786bcc62014-11-01 09:28:29 -060020
21The following components are available:
Jens Owen78a25a22014-12-17 12:21:12 -070022- Proposed Reference [*ICD Loader*](loader) (including [*Layer Management*](layers/README.md))
23- Proposed Reference [*Validation Layers*](layers/)
Jens Owenc8984db2014-12-17 14:18:22 -070024 - [Object Tracker](layers/object_track.c)
25 - [Draw State](layers/draw_state.c)
26 - [MemTracker](layers/mem_tracker.c)
Jens Owen78a25a22014-12-17 12:21:12 -070027- [*GLAVE Debugger*](tools/glave)
Jens Owenc8984db2014-12-17 14:18:22 -070028 - APIDump (generated)
29 - APIDumpFile (generated)
30 - glvtrace64: capture trace of XGL API of an application.
31 - glvreplay64: replay captured trace.
32
33 screenshot:
34
35 ![ScreenShot](docs/images/Glave-Small.png)
36
Jens Owen78a25a22014-12-17 12:21:12 -070037- [*Sample Drivers*](icd)
Jens Owenc8984db2014-12-17 14:18:22 -070038 - [Common Infrastructure](icd/common)
39 - [Implementation for Intel GPUs](icd/intel)
Jens Owen78a25a22014-12-17 12:21:12 -070040- [*Sample Driver Tests*](tests)
Jens Owenc8984db2014-12-17 14:18:22 -070041 - Now includes Golden images to verify xgl_render_tests rendering.
JensOwen786bcc62014-11-01 09:28:29 -060042
Courtney Goeltzenleuchter76793e62014-11-26 09:56:28 -070043## New
44
Courtney Goeltzenleuchterb66da032014-12-11 16:41:43 -070045- XGL API trace and capture tools. See tools/glave/README.md for details.
Courtney Goeltzenleuchter7b193492014-12-09 09:33:18 -070046- Sample driver now supports multiple render targets. Added TriangleMRT to test that functionality.
47- Added XGL_SLOT_SHADER_TEXTURE_RESOURCE to xgl.h as a descriptor slot type to work around confusion in GLSL
48 between textures and buffers as shader resources.
49- Misc. fixes for layers and Intel sample driver
50
51## Prior updates
52
53- Added mutex to APIDump, APIDumpFile and DrawState to prevent apparent threading issues using printf
54- Fix support for {Fill,Copy}Memory
55- MemTracker can report issues to application via debug callback
56- Update test infrastructure to improve ease of writing new tests. Add image comparison feature for regression testing. Requires ImageMagick library.
57- Misc. fixes to demos, layers and Intel sample driver
Courtney Goeltzenleuchter16a0a172014-12-02 11:54:27 -070058- Added mutex to APIDump, APIDumpFile and DrawState to prevent apparent threading issues using printf
59- Fix support for {Fill,Copy}Memory
60- MemTracker can report issues to application via debug callback
61- Update test infrastructure to improve ease of writing new tests. Add image comparison feature for regression testing. Requires ImageMagick library.
62- Misc. fixes to demos, layers and Intel sample driver
Courtney Goeltzenleuchter76793e62014-11-26 09:56:28 -070063
JensOwen95c62272014-11-01 13:05:43 -060064## How to Build and Run
65
Jens Owen78a25a22014-12-17 12:21:12 -070066[BUILD.md](BUILD.md)
JensOwen3ceb4752014-11-01 13:18:21 -060067includes directions for building all the components, running the validation tests and running the demo applications.
JensOwen95c62272014-11-01 13:05:43 -060068
Courtney Goeltzenleuchter76793e62014-11-26 09:56:28 -070069Information on how to enable the various Debug and Validation layers is in
Jens Owen78a25a22014-12-17 12:21:12 -070070[layers/README.md](layers/README.md).
JensOwen95c62272014-11-01 13:05:43 -060071
72## References
JensOwen786bcc62014-11-01 09:28:29 -060073This version of the components are written based on the following preliminary specs and proposals:
74- [**XGL Programers Reference**, 1 Jul 2014](https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/proposals/AMD/Explicit%20GL%20Programming%20Guide%20and%20API%20Reference.pdf)
75- [**BIL**, version 1.0, revision 18](https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/proposals/BIL/Specification/BIL.html)
Courtney Goeltzenleuchter76793e62014-11-26 09:56:28 -070076- [**IMG's Fixed Function Proposal**, 13 Nov 2014](https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/XGL/accepted/xgl_fixed_function_vertex_fetch_proposal.txt)
JensOwene3429322014-11-01 09:39:46 -060077- [**Valve's Loader Proposal**, 7 Oct 2014](https://cvs.khronos.org/svn/repos/oglc/trunk/nextgen/proposals/Valve/xglLayers.pptx)
Courtney Goeltzenleuchter21f8ea52014-09-01 17:18:57 -060078
JensOwen95c62272014-11-01 13:05:43 -060079## License
Courtney Goeltzenleuchter21f8ea52014-09-01 17:18:57 -060080This work is intended to be released as open source under a BSD-style
81license once the XGL specification is public. Until that time, this work
82is covered by the Khronos NDA governing the details of the XGL API.
83
JensOwen95c62272014-11-01 13:05:43 -060084## Acknowledgements
Courtney Goeltzenleuchter21f8ea52014-09-01 17:18:57 -060085While this project is being developed by LunarG, Inc; there are many other
86companies and individuals making this possible: Valve Software, funding
87project development; Intel Corporation, providing full hardware specifications
88and valuable technical feedback; AMD, providing XGL spec editor contributions;
89ARM, contributing a Chairman for this working group within Khronos; Nvidia,
90providing an initial co-editor for the spec; Qualcomm for picking up the
91co-editor's chair; and Khronos, for providing hosting within GitHub.
92
JensOwen95c62272014-11-01 13:05:43 -060093## Contact
94If you have questions or comments about this driver; or you would like to contribute
95directly to this effort, please contact us at XGL@LunarG.com; or if you prefer, via
96the GL Common mailing list: gl_common@khronos.org