Courtney Goeltzenleuchter [Thu, 11 Dec 2014 23:41:43 +0000 (16:41 -0700)]
xgl: note about glave tool in README
Jon Ashburn [Thu, 11 Dec 2014 01:02:42 +0000 (18:02 -0700)]
glave: debugger fill in XGL entrypoint name instead of packetId in UI
Jon Ashburn [Wed, 10 Dec 2014 18:11:24 +0000 (11:11 -0700)]
glave: Add pReserved parameter to tracing code gen EnumerateLayers
Tobin Ehlis [Wed, 10 Dec 2014 17:54:57 +0000 (10:54 -0700)]
glave: Just copy pReserved ptr when tracing.
Jon Ashburn [Wed, 10 Dec 2014 17:24:56 +0000 (10:24 -0700)]
glave: Fix trace code gen for xglEnumerateLayers
Tobin Ehlis [Tue, 9 Dec 2014 14:50:34 +0000 (07:50 -0700)]
glave: Made Wsi & Dbg structs code-generated. All glave trace files now code-generated.
Tobin Ehlis [Tue, 9 Dec 2014 03:19:47 +0000 (20:19 -0700)]
glave: Added codegen for Wsi and Dbg .h & .c source files
Tobin Ehlis [Mon, 8 Dec 2014 19:34:34 +0000 (12:34 -0700)]
glave: Added codegen for glvtrace_xgl_xgl_structs.h
Tobin Ehlis [Fri, 5 Dec 2014 19:13:07 +0000 (12:13 -0700)]
glave: Update replay to use code-gen version of xgl_enum_string_helper.h
Tobin Ehlis [Fri, 5 Dec 2014 18:38:22 +0000 (11:38 -0700)]
glave: Codegen of packet_id header
Tobin Ehlis [Mon, 1 Dec 2014 19:53:53 +0000 (12:53 -0700)]
layers: Added codegen for glave glvtrace_xgl_xgl Header and C files
Jon Ashburn [Fri, 14 Nov 2014 21:00:22 +0000 (14:00 -0700)]
Build Glave from top level Cmake for Xgl.
Also have glave build use the xgl header files and libXGL.so from the
top level xgl files rather than glave/src/thirdparty/xgl.
Courtney Goeltzenleuchter [Tue, 9 Dec 2014 16:33:18 +0000 (09:33 -0700)]
xgl: Update README to summarize recent changes
Cody Northrop [Wed, 10 Dec 2014 23:59:32 +0000 (16:59 -0700)]
demos: Start using XGL_SLOT_SHADER_TEXTURE_RESOURCE
Cody Northrop [Wed, 10 Dec 2014 02:08:33 +0000 (19:08 -0700)]
xgl: Add new resource type for textures
This change modifies xgl.h to include a new descriptor set
slot type for textures, distinct from resources:
XGL_SLOT_SHADER_TEXTURE_RESOURCE
Buffers continue to use:
XGL_SLOT_SHADER_RESOURCE
The ordering of their inclusion in binding tables entries is
important: textures must come before buffers. This is how
the compiler expects them to be laid out.
Tobin Ehlis [Wed, 10 Dec 2014 00:00:33 +0000 (17:00 -0700)]
layers: Don't show totally unused DS slots or arrows for slots unused by a particular shader
Courtney Goeltzenleuchter [Mon, 8 Dec 2014 16:24:16 +0000 (09:24 -0700)]
BIL: Updated to latest BIL spec / functionality
The BIL specification rationalized/added these, with full semantics
OpTextureQuerySizeLod,
OpTextureQuerySize,
OpTextureQueryLod,
OpTextureQueryLevels, and
OpTextureQuerySamples.
Courtney Goeltzenleuchter [Mon, 1 Dec 2014 16:31:17 +0000 (09:31 -0700)]
layers: Eliminate statically allocated strings
See suspicious crashes when debug layers are enabled.
Believe this is due to memory overruns with fixed size
string allocations. This patch makes most of the allocations
compute the space needed to eliminate overruns and show
as much of the debug info as possible.
Also uses strncpy and strncat to ensure strings stay within
the limits of the buffer.
Jon Ashburn [Wed, 3 Dec 2014 21:30:48 +0000 (14:30 -0700)]
loader: handle inserting dispatch table pointer into all created objects
Remove the setDispatch calls into cid driver. Replace with inserting the
current dispatch table into created objects. Requires icd driver to
still have a slot for the dispatch table pointer in first location of
every created object.
Jon Ashburn [Wed, 3 Dec 2014 18:33:51 +0000 (11:33 -0700)]
icd: Fix bug in generated Icd generated entrypoints don't unwrap gpu object
Generated code for icd API entrypoints with XGL_PHYSICAL_GPU was unwrapping
the handle; but with no loader present gpu objects are never wrapped. Allows
one to LD_PRELOAD libXGL_i965.so and the tests work.
Jon Ashburn [Wed, 3 Dec 2014 18:13:40 +0000 (11:13 -0700)]
icd: Make driver use the same definition for dispatch table as loader uses
Loader and icd were using two different structs to define dispatch table.
Consolidate to to use the dispatch table defined in xglLayer.h so we
will not have issues with them getting out of sync.
Courtney Goeltzenleuchter [Tue, 2 Dec 2014 18:54:27 +0000 (11:54 -0700)]
misc: Add update summary to README.md
Chia-I Wu [Tue, 2 Dec 2014 14:08:35 +0000 (22:08 +0800)]
tests: move xglinfo to demos
Courtney Goeltzenleuchter [Wed, 3 Dec 2014 01:12:51 +0000 (18:12 -0700)]
loader: Fix missing terminator on string
strncpy does not copy the terminating null character
so were getting invalid directory names. Since we know
there is enough space for the string, just copy it and
get the terminator as well.
Courtney Goeltzenleuchter [Mon, 1 Dec 2014 16:29:42 +0000 (09:29 -0700)]
loader: Make LIBXGL_LAYERS_PATH behave like LIBXGL_DRIVERS_PATH
Courtney Goeltzenleuchter [Tue, 2 Dec 2014 16:05:18 +0000 (09:05 -0700)]
xgl: Update BIL/LunarGLASS/glslang versions
GregF [Wed, 19 Nov 2014 01:01:01 +0000 (18:01 -0700)]
Handle gaps in FS inputs.
Added logic to handle when user varyings are written by the VS but not read by the FS.
Also moved SBE command building from draw-time to pipeline-create.
Jon Ashburn [Tue, 2 Dec 2014 20:03:09 +0000 (13:03 -0700)]
loader: xglEnumerateLayers() returns layer names rather than library names
Loader's xglEnumerateLayers calls into each layer library to get their
layer names from the library.
Jon Ashburn [Tue, 2 Dec 2014 16:03:31 +0000 (09:03 -0700)]
include: Remove API typedefs from xglLayer.h
Jon Ashburn [Tue, 2 Dec 2014 15:59:56 +0000 (08:59 -0700)]
include: Move API typedefs from xglLayer.h into xgl.h, xglDbg.h, xglWsi
Jon Ashburn [Mon, 1 Dec 2014 21:22:40 +0000 (14:22 -0700)]
layers: Add Multi layer with example of multiple layers per file.
Tobin Ehlis [Thu, 27 Nov 2014 22:43:39 +0000 (15:43 -0700)]
layers: DrawState layer can dump complete State to Graphviz dot file format
DrawState features "drawStateDumpDotFile(char* filename)" extension which will trigger a dot file to be dumped including PSO, Descriptor Sets, and Dynamic State.
As a convenience, DrawState will dump pipeline_dump.dot automatically on first draw only. There are a few hacks to pull off the connection of Descriptor Set to the mapping, but for all of our tests this seems to be working.
Also fixed a few DrawState hangs due to mutex locking bugs.
Tobin Ehlis [Fri, 21 Nov 2014 19:04:39 +0000 (12:04 -0700)]
layers: Added mutext to DrawState to guard global linked-lists.
Tobin Ehlis [Fri, 21 Nov 2014 15:58:46 +0000 (08:58 -0700)]
layers: Tracking and reporting dynamic state in DrawState layer
Courtney Goeltzenleuchter [Mon, 10 Nov 2014 18:13:13 +0000 (11:13 -0700)]
demo cube: Clean up event processing
Will now really wait for an event when paused.
Always update and render after checking for events
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 18:28:09 +0000 (11:28 -0700)]
demo/cube: Remove unneeded call
Tobin Ehlis [Thu, 27 Nov 2014 14:53:59 +0000 (07:53 -0700)]
demos: Update tri to include mem refs and properly clear mem bindings prior to object deletion.
Tobin Ehlis [Thu, 27 Nov 2014 14:52:04 +0000 (07:52 -0700)]
layers: MemTracker clears CB refs if CB obj destroyed and correctly destroys Wsi created images along w/ freeing their memory.
Tobin Ehlis [Thu, 27 Nov 2014 14:01:51 +0000 (07:01 -0700)]
layers: Updated README with further layer descriptions.
Jon Ashburn [Wed, 26 Nov 2014 20:27:04 +0000 (13:27 -0700)]
layers: Update README.md for overall documentation and Basic layer
Jon Ashburn [Wed, 26 Nov 2014 18:10:26 +0000 (11:10 -0700)]
layers: Upgrade Basic to support multi-gpu multi-dispatch table
Remove C file and use a C++ for access to STL maps for hash map into
the dispatch tables from the object handles.
Tobin Ehlis [Wed, 26 Nov 2014 01:01:12 +0000 (18:01 -0700)]
layers: Report memory leaks as warnings in MemTracker layer.
Tobin Ehlis [Wed, 26 Nov 2014 00:43:26 +0000 (17:43 -0700)]
layers: Added APIDumpNoAddr layer that replaces variable addresses in API Dump w/ static "addr" string
Tobin Ehlis [Tue, 25 Nov 2014 23:59:27 +0000 (16:59 -0700)]
layers: Updated layer names to be camelCase where name is contained in library file name as libXGLLayer<NAME>.so
Tobin Ehlis [Tue, 25 Nov 2014 21:47:20 +0000 (14:47 -0700)]
layers: Fix bug in CmdBuffer free for MemTracker layer
Jon Ashburn [Tue, 25 Nov 2014 19:56:49 +0000 (12:56 -0700)]
Add reserved parameter to xglEnumerateLayers for layer usage
This parameter can be used by layer for getting GPA and gpu info queries.
Also add xglEnumerateLayers() to Basic layer, to show example of only
supporting a particular GPU.
Tobin Ehlis [Tue, 25 Nov 2014 19:27:38 +0000 (12:27 -0700)]
layers: Fix bug in DestroyObject code of MemTracker layer.
Jon Ashburn [Tue, 25 Nov 2014 18:08:42 +0000 (11:08 -0700)]
layers: Update xglEnumerateLayers() to work with layer names
Use layer names in the librarires rather than library filenames.
Jon Ashburn [Tue, 18 Nov 2014 16:06:04 +0000 (09:06 -0700)]
loader: Make layer names be independent of layer library filename
Also change env var from LIBXGL_LAYER_LIBS to LIBXGL_LAYER_NAMES
since the layer name rather than library name is given.
Jon Ashburn [Mon, 17 Nov 2014 17:17:37 +0000 (10:17 -0700)]
loader: Change ActivateLayers name to be consistent with rest of loader
Tobin Ehlis [Tue, 25 Nov 2014 17:24:15 +0000 (10:24 -0700)]
layers: Add VBO validation to DrawState layer.
Tobin Ehlis [Tue, 25 Nov 2014 00:09:09 +0000 (17:09 -0700)]
layers: Account for the slotOffset when DS bound.
Tobin Ehlis [Mon, 24 Nov 2014 23:06:04 +0000 (16:06 -0700)]
layers: Flag ERROR on no DS bound if that DS is used by a shader.
Courtney Goeltzenleuchter [Tue, 25 Nov 2014 00:36:02 +0000 (17:36 -0700)]
xgl: Update to current BIL/glslang/LunarGLASS
Tobin Ehlis [Mon, 24 Nov 2014 22:46:55 +0000 (15:46 -0700)]
layers: Add thread ID to API dump messages
Initial code from Jon and I added indexing so TID stays in 0-512 range and will be the same on consecutive runs with a single thread.
Jon Ashburn [Fri, 21 Nov 2014 20:29:30 +0000 (13:29 -0700)]
demos: Fix uninitialized dataSize input to GetObjectInfo()
Tobin Ehlis [Fri, 21 Nov 2014 16:35:53 +0000 (09:35 -0700)]
layers: For APIFileDump, overwrite an existing file rather than always appending.
Tobin Ehlis [Thu, 20 Nov 2014 19:18:45 +0000 (12:18 -0700)]
layers: Added mutex for APIDump[File] layers to guard prints.
Tobin Ehlis [Thu, 20 Nov 2014 17:48:56 +0000 (10:48 -0700)]
layers: Added Sampler details slot printout
Tobin Ehlis [Thu, 20 Nov 2014 16:49:17 +0000 (09:49 -0700)]
layers: Update DrawState to support all Gfx shader types and to shadow full Gfx Pipeline state
Tobin Ehlis [Thu, 20 Nov 2014 13:38:50 +0000 (06:38 -0700)]
layers: Struct printing improvements for "pNext" struct chains
Chia-I Wu [Wed, 19 Nov 2014 15:05:04 +0000 (23:05 +0800)]
build: fix in-tree build
When building in-tree, layers/object_track.h may be removed because it was
also listed as a generated file. This commit stops generating object_track.h
or any file in the source tree. Instead, it adds ${CMAKE_CURRENT_SOURCE_DIR}
and ${CMAKE_CURRENT_BINARY_DIR} to the include directories.
Chia-I Wu [Wed, 19 Nov 2014 14:55:33 +0000 (22:55 +0800)]
build: do not pollute source tree with icd-dispatch-table.h
Generate icd-dispatch-table.h in the binary directory and add the diretory to
ICD_INCLUDE_DIRS.
Chia-I Wu [Wed, 19 Nov 2014 14:45:51 +0000 (22:45 +0800)]
build: remove icd-dispatch-table.h generation from loader
It was added by
d43f9b6658a3cc2115fd9db118f6fd51acf09379 but it did not seem
to be needed.
Tobin Ehlis [Wed, 19 Nov 2014 23:19:28 +0000 (16:19 -0700)]
layers: Update MemTracker to support dbg Callbacks and a few bug fixes
MemTracker now handles creation of Image and Mem binding done by xglWsiX11CreatePresentableImage() call, and it also correctly clears a previous mem binding on object if one existed.
Tobin Ehlis [Wed, 19 Nov 2014 22:52:46 +0000 (15:52 -0700)]
layers: Fix API Dump to handle xglWsiX11CreatePresentableImage() which has 2 output params.
Tobin Ehlis [Tue, 18 Nov 2014 23:38:08 +0000 (16:38 -0700)]
layers: Updated DrawState to support dbg callbacks
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 20:26:22 +0000 (13:26 -0700)]
xgl: Ignore generated header files
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 19:08:29 +0000 (12:08 -0700)]
xgl: Update external revisions
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 17:40:29 +0000 (10:40 -0700)]
layers: Add flush to apidump to see output while debugging
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 17:39:30 +0000 (10:39 -0700)]
layers: Fix apidump buffer overruns
Courtney Goeltzenleuchter [Tue, 18 Nov 2014 18:28:09 +0000 (11:28 -0700)]
demo cube: Clean up event processing
Will now really wait for an event when paused.
Always update and render after checking for events
Courtney Goeltzenleuchter [Fri, 7 Nov 2014 22:17:03 +0000 (15:17 -0700)]
demo: tri: Add window destroy processing
Courtney Goeltzenleuchter [Thu, 6 Nov 2014 21:27:52 +0000 (14:27 -0700)]
demo: cube: Process destroy window
Demo was not exiting cleanly when the window close button
was clicked.
Found this solution on-line:
http://lists.freedesktop.org/pipermail/xcb/2010-December/006713.html
Courtney Goeltzenleuchter [Wed, 26 Nov 2014 16:56:28 +0000 (09:56 -0700)]
xgl: Update README with current status
Tobin Ehlis [Tue, 18 Nov 2014 18:28:33 +0000 (11:28 -0700)]
layers: Update ObjectTracker layer to be generated and support callbacks
Added some code to render_tests.cpp to support Dbg callbacks and ObjectTracker extensions, but code is #defined off by default.
Tobin Ehlis [Fri, 14 Nov 2014 20:01:02 +0000 (13:01 -0700)]
layers: Updated Object Tracker to support callbacks and extensions
Jon Ashburn [Fri, 14 Nov 2014 16:52:42 +0000 (09:52 -0700)]
Make the Dbg xgl global calls use dispatch table for layer support
xglDbgRegisterMsgCallbacks, xglDbgUnregisterMsgCallbacks,
xglDbgSetGlobalOptions dispatched via dispatch table so layers can
intercept these calls. Also add support for these calls being dispatched
to different icd functions based on gpu for icd's which may want different
functions per gpu.
Tobin Ehlis [Thu, 13 Nov 2014 20:31:10 +0000 (13:31 -0700)]
layers: Update ObjTracker to track each object type separately and report obj count status
Tobin Ehlis [Wed, 12 Nov 2014 23:02:46 +0000 (16:02 -0700)]
layers: Correctly set generic_layer.c as generated in CMakeLists.txt
Tobin Ehlis [Wed, 12 Nov 2014 22:21:03 +0000 (15:21 -0700)]
layers: Include print helper file dependencies for MemTracker and DrawState layers
Tobin Ehlis [Wed, 12 Nov 2014 20:11:15 +0000 (13:11 -0700)]
layers: Make APIDumpFile layer fully generated
Tobin Ehlis [Wed, 12 Nov 2014 18:47:07 +0000 (11:47 -0700)]
layers: Use xgl-layer-generate.py to generate the generic layer
Tobin Ehlis [Wed, 12 Nov 2014 00:28:22 +0000 (17:28 -0700)]
layers: Updated APIDump Layer and made it fully generated.
Tobin Ehlis [Tue, 11 Nov 2014 19:28:12 +0000 (12:28 -0700)]
layers: Improve handling of printing embedded structs in generated string helper functions.
Tobin Ehlis [Tue, 11 Nov 2014 15:00:58 +0000 (08:00 -0700)]
layers: Restore dynamic malloc fix in xgl-helper.py
Tobin Ehlis [Tue, 11 Nov 2014 15:00:58 +0000 (08:00 -0700)]
layers: Update xglWsiX11GetMSC interface in layers
Tobin Ehlis [Mon, 10 Nov 2014 23:03:19 +0000 (16:03 -0700)]
layers: Actual auto-gen of print helper code used by layers
Chia-I Wu [Sat, 8 Nov 2014 02:48:20 +0000 (10:48 +0800)]
update to the latest vertex fetch proposal
The main difference is that XGL_SLOT_VERTEX_INPUT is replaced by
xglCmdBindVertexData. This actually simplifies the driver, which can be seen
with:
$ git show icd/intel/
The new proposal also adds some new formats, but they are ignored for now
because they are marked TBD.
Chia-I Wu [Fri, 7 Nov 2014 06:30:34 +0000 (14:30 +0800)]
demos: add a fence for presentation
After xglWsiX11QueuePresent(), the image is scheduled for copying. We should
not render to it until the copying is done. Otherwise, depending on how the
DDX works, flickering or GPU hangs may be expected.
Add and wait on the fence before submitting the command buffer. This ensures
the DDX is done with the image. Set async to true to run as fast as
possible.
Chia-I Wu [Fri, 7 Nov 2014 05:33:45 +0000 (13:33 +0800)]
wsi_x11: add xcb_window_t to xglWsiX11GetMSC()
To match XGL_WSI_X11_PRESENT_INFO and allow xcb_crtc_id to be XCB_NONE.
GregF [Tue, 11 Nov 2014 00:26:41 +0000 (17:26 -0700)]
Added u_popcount to abstract __builtin_popcount.
Tobin Ehlis [Mon, 10 Nov 2014 19:29:12 +0000 (12:29 -0700)]
layers: Added APIFileDump and MemTracker layers and fix DrawState
Courtney Goeltzenleuchter [Mon, 10 Nov 2014 18:21:04 +0000 (11:21 -0700)]
layers: Fix memory overrun issue causing segfault.
Courtney Goeltzenleuchter [Mon, 3 Nov 2014 01:50:52 +0000 (18:50 -0700)]
Misc. cleanup
JensOwen [Sat, 1 Nov 2014 20:05:50 +0000 (14:05 -0600)]
Update Intel Driver README
Update Intel Driver README and add a specific README for the compiler
JensOwen [Sat, 1 Nov 2014 19:19:54 +0000 (13:19 -0600)]
formatting
JensOwen [Sat, 1 Nov 2014 19:18:21 +0000 (13:18 -0600)]
fix build instructions
JensOwen [Sat, 1 Nov 2014 19:11:50 +0000 (13:11 -0600)]
fix formatting
JensOwen [Sat, 1 Nov 2014 19:05:43 +0000 (13:05 -0600)]
Build Direction
add link in top level readme to build info, and put a place holder in
for demo/readme