aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-16icd: remove unused icd-log.[ch]Chia-I Wu
2015-04-16FIXUP: update xglDbg.h for XGL_INSTANCECourtney Goeltzenleuchter
commit ba1c0f351db007373bf16d95e607ec4511e27164 Author: Courtney Goeltzenleuchter <courtney@LunarG.com> Date: Mon Apr 13 14:10:06 2015 -0600 xgl: update xglDbg.h for XGL_INSTANCE
2015-04-16loader: Fix Dbg entrypoints with instance param to not loop all instancesJon Ashburn
DbgRegisterMsgCallback, DbgUnregisterMsgCallback, DbgSetGlobalOption were all making these calls for all instances rather than just instance passed in as parameter.
2015-04-16xgl: update xglDbg.h for XGL_INSTANCECourtney Goeltzenleuchter
Add XGL_INSTANCE as the first parameter of xglDbgRegisterMsgCallback(), xglDbgUnregisterMsgCallback(), and xglDbgSetGlobalOption(). The loader is simplified. loader_log() is modified to always output to stderr. glave is modified to register its message callback after xglEnumerateGpus(), and xglDbgUnregisterMsgCallback() is called only before xglDestroyInstance(). XGL_INSTANCE is ignored by the layers and the driver for now. Bump up API version to XGL_MAKE_VERSION(0, 56, 1).
2015-04-16xgl: Remove fixed and optimal tess factorsCourtney Goeltzenleuchter
bug #12962 alpha header: r29633 (V0.56.0)
2015-04-16xgl: specialization constant proposalCourtney Goeltzenleuchter
Alpha header version: r29632
2015-04-16FIXUP: Add glave support for xglCmdClearColor patchCourtney Goeltzenleuchter
4559a6c90cdfc55ae94b0c5b9b9d0841031aa3d0 xgl: combine xglCmdClearColor* into one function
2015-04-16xgl: combine xglCmdClearColor* into one functionCourtney Goeltzenleuchter
combined the two xglCmdClearColorImage* functions into one, with the XGL_CLEAR_COLOR struct bug # 13172 alpha header: r29626
2015-04-16loader: Fix prefix used to find layer library.Courtney Goeltzenleuchter
2015-04-16xgl: Update primitive topology enumCourtney Goeltzenleuchter
bug: 12959 header version: r29602
2015-04-16xgl: Add missing formats and remove channel mappingCourtney Goeltzenleuchter
Alpha header version: r29599 Changed formats: XGL_FMT_BC1_UNORM => XGL_FMT_BC1_RGB_UNORM XGL_FMT_BC1_SRGB => XGL_FMT_BC1_RGB_SRGB XGL_FMT_ASTC_4x5_UNORM => XGL_FMT_ASTC_5x4_UNORM XGL_FMT_ASTC_4x5_SRGB => XGL_FMT_ASTC_5x4_SRGB New formats: XGL_FMT_BC1_RGBA_UNORM XGL_FMT_BC1_RGBA_SRGB XGL_FMT_ETC2_R8G8B8_SRGB XGL_FMT_ETC2_R8G8B8A1_SRGB XGL_FMT_ETC2_R8G8B8A8_SRGB XGL_FMT_B4G4R4A4_UNORM XGL_FMT_B5G5R5A1_UNORM None of the new formats are currently supported in the sample driver.
2015-04-16xgl: Impossible to expose multi-function queuesCourtney Goeltzenleuchter
Bug: 13363 header version: r29597 (0.51.0) included review feedback.
2015-04-16icd: Dont follow next twice in for loopTony Barbour
2015-04-16xgl: Remove unneeded library includes from xgl include folderCourtney Goeltzenleuchter
Some library include files needed for the Windows build were put in two places. Have elminated the redundant copies in the main include folder and demos gets them from the appropriate library in the libs folder.
2015-04-16demos/tri: fix a leakChia-I Wu
03bc341897dc25ed717827eaaef5939b13bb5ec0 missed this line.
2015-04-11xgl-generate.py: rewrite LoaderEntrypointsSubcommandChia-I Wu
With the goal to generalize dispatch rules and avoid code duplication. As a result, xglOpenPeerImage() is fixed and xglAllocDescriptorSets() gains error checking.
2015-04-11xgl-generate.py: add and use helpers from loader.hChia-I Wu
Add helpers to loader.h to improve readability of LoaderEntrypointsSubcommand.
2015-04-11xgl-generate.py: add WinDefFileSubcommandChia-I Wu
It replaces xgl-win-def-file-generate.py and is able to generate loader's XGL.def.
2015-04-11demo: remove XCB_NVIDIA pathsChia-I Wu
The memory returned by xglWsiX11CreatePresentableImage() is not supposed to be freed. This change at worse leaks the memories on app exiting for some implementations. That should be fine. Also, the function returns at most one memory. Remove multiple memory support from tri.
2015-04-11demos: set EXTERNAL_SPV from CMakeLists.txtChia-I Wu
Do not abuse XCB_NVIDIA.
2015-04-11demos: remove non-__linux__ pathsChia-I Wu
I do not think they work in that the framebuffer is created with .colorAttachmentCount = 1, .pColorAttachments = NULL, If we want to support offscreen rendering, add a command line option for that. If we want to support other window systems, refactor the code first.
2015-04-06Merge branch 'master' of https://github.com/KhronosGroup/GL-NextPeter Lohrmann
2015-04-06Merge branch 'glave_snapshot_support'Peter Lohrmann
Conflicts: layers/CMakeLists.txt tools/glave/scripts/vk_generate.py tools/glave/src/glv_extensions/glvreplay_xgl/CMakeLists.txt tools/glave/src/glv_extensions/glvtrace_xgl/CMakeLists.txt tools/glave/src/glv_extensions/glvtrace_xgl/codegen/glvtrace_xgl_xgl.c tools/glave/src/glv_extensions/glvtrace_xgl/codegen/glvtrace_xgl_xgl.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_size_helper.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_string_helper.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_string_helper_cpp.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_string_helper_no_addr.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_string_helper_no_addr_cpp.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_validate_helper.h tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_wrappers.cpp tools/glave/src/glv_extensions/glvtrace_xgl/codegen/xgl_struct_wrappers.h xgl_helper.py
2015-04-06layers: Update layer README.md info with current DrawState and MemTracker statusTobin Ehlis
2015-04-06demos: Fix shader assert in tri.cMark Lobodzinski
Updating tri demo's shader versions to 140 keeps them from asserting
2015-04-06layers: Updated for explicit fence validation with multiple queuesMark Lobodzinski
Fences were being validated to make sure they had been retired, layer was updated to validate that the app has checked the fences.
2015-04-06layers: Added support for multiple queuesMark Lobodzinski
Not supported on Intel, but will be on other hw.
2015-04-06layers: Added GetDeviceQueue API, fixed up variable namesMark Lobodzinski
Updated LinkedList-related variable names
2015-04-03Merge remote-tracking branch 'origin/master'Piers Daniell
Conflicts: loader/loader.c
2015-04-03loader: Work correctly when there is no reg entryPiers Daniell
Without this fix the loader will crash if there is no registry entry.
2015-04-03demo: tri: Use explicit locations on the attribsPiers Daniell
Without this the attributes may assume the wrong vertex attrib slot.
2015-04-03demos: copy XGL.dll to target folderPiers Daniell
Makes life easier so the XGL.dll doesn't have to be manually copied every time.
2015-04-03Have demos give a useful error if no compatible ICD found.Ian Elliott
2015-04-03Fix NULL-pointer dereference if can't find registry entry.Ian Elliott
2015-04-03layers: update codegen to split struct_size_helper into .h and .c files.Peter Lohrmann
* Also added a copyright notice to all the generated files. * Splitting the definition from the declaration was needed to better utilize these helpers in glave.
2015-04-01glaveSnapshot: snapshot now does deep copy of DEVICE_CREATE_INFO struct.Peter Lohrmann
* Add new local methods to do a deep copy of the DEVICE_CREATE_INFO struct. A similar method is added to do a deep free of the struct. This is just to experiment with what will be needed to support all the Create* entrypoints; most of this should be code-gen'ed later on. * The CreateInfo struct is now also printed as part of glvSnapshotPrintDelta to confirm that it is working via the UI. Note the helper function I'm using to print the struct will only print the first layer in the list. It doesn't support printing > 1 layer.
2015-04-01xgl_helper: sort dictionaries to make generated output consistentPeter Lohrmann
2015-04-01layers: Shadow PSO Creation structs directly in PIPELINE_NODETobin Ehlis
This simplifies creation and desctruction as well as validation of PSO.
2015-04-01layers: Add DrawState validation that FB samples matches PSO samplesTobin Ehlis
2015-03-31New loader_get_registry_value() function reads 32/64 registry ...Ian Elliott
This version should be able to find a key/value if it exists in either the 32 or 64 bit hive. Also, it also doesn't allocate any string data until it knows what size is needed. Changed the "xcv_nvidia.cpp" file to also use the new registry approach.
2015-03-30xgl_helper: sort dictionaries to make generated output consistentPeter Lohrmann
2015-03-30glave: move code-gen'ed files.Peter Lohrmann
* glave-generate.py has moved into tools/glave/scripts/ and renamed to vk_generate.py * still reference xgl.py and xgl_helper.py from GL-Next directory. * all glave-specific code-gen'ed files now live in the source tree * all glave-specific code-gen'ed files are now generated into a "codegen" directory local to the project to make it easier to spot when a generated file has changed or is being debugged. * all glave-specific code-gen'ed files are now being checked in so that we can better track differences caused by the code-gen as the header file evolves. (based on squash of the follow two cherry-picks, plus some additional changes to remove files generated by xgl_helper.py since they change every build) (cherry picked from commit eec461f4bc68c5ac12a6b73b9f6e5464be0640bf) (cherry picked from commit 2614252bfc3fe9c2cd8470b3b42b529a69f2e3f3)
2015-03-30glaveSnapshot: Reorganize creation/insertion and deletion of objectsPeter Lohrmann
* Return value of api's Create* calls is now ensured to be XGL_SUCCESS before attempting to track the object. * Created objects are now inserted into a snapshot's global and object lists, then the node is returned so that the caller can populate additional information in the pStruct member if needed. * The list of devices now uses the GLV_VK_SNAPSHOT_LL_NODE because device object nodes will be linked into the global list and object lists to help avoid duplication of data. * When a created object needs to get deleted, snapshot_remove_object(..) will search for the object in the global list and remove the node from both lists before returning a pointer to the node (or NULL if the object was not in the global list, meaning we didn't see the creation). The caller should delete the pStruct member as appropriate and then delete the node itself. If the creation of the object was not captured, the caller should add the object to the deleted object list. * Deleted objects (whose creation was not recorded) now get tracked using a different linked-list struct than other objects. There is a lot less known information related to a deleted object, so there's no need to use the larger struct.
2015-03-30GlaveSnapshot: Remove ifdef'd code for OBJ_NODES.Peter Lohrmann
* The new tracking of objects in the snapshot struct is working, and will soon diverge from the OBJ_NODES functionality.
2015-03-27GlaveSnapshot Layer: Objects are now tracked within a GLV_VK_SNAPSHOT structure.Peter Lohrmann
* Moved the previously static linked lists into a snapshot structure. Old functionality is available temporarily via a defined macro * Added a description of how the master and delta snapshots are planned to function. * Added new entrypoints for planned snapshot functionality. * Started expanding tracking of XGL_DEVICE objects to get a better understanding of what will need to be done for each of the different object types. Some code-gen (or possibly existing scripts) will likely help here.
2015-03-27glave: Add ability for replay memory allocations and mapping to be pendingJon Ashburn
2015-03-26glave: Consolidate the maped data and gpu memory maps used during replayJon Ashburn
Now the information is all within a single STL map.
2015-03-26glave: Make the XGL_GPU_MEMORY object mapping use a structure. Needed so can ↵Jon Ashburn
merge the Memory object data and info into the same mapping.
2015-03-26glave: Track Buffer and Image memory requirements during replay.Jon Ashburn
This is start of replayer having it's own memory manager. Needed since trace GPU may not have same memory requirements for objects as replay GPU
2015-03-26layers: Correct xglBindObjectMemory signature in MemTracker message.Tobin Ehlis