platform/upstream/Vulkan-LoaderAndValidationLayers.git
9 years agomisc:Fixes to get better behavior in release builds
Tony Barbour [Thu, 5 Feb 2015 21:14:33 +0000 (14:14 -0700)]
misc:Fixes to get better behavior in release builds

Add -fno-strict-aliasing -fno-builtin-memcmp - Both of these are
used by the Mesa driver, and without the first one, we hang? in
link_shaders on release builds

Move cube's LoadTexture out of an assert so it isn't skipped in
release builds

9 years agomisc: Add warning about recent Ubuntu 14.10 issue
Courtney Goeltzenleuchter [Fri, 6 Feb 2015 00:02:39 +0000 (17:02 -0700)]
misc: Add warning about recent Ubuntu 14.10 issue

9 years agoglave: fix replay of AllocMemory packets with info chained structures
Jon Ashburn [Thu, 5 Feb 2015 23:48:13 +0000 (16:48 -0700)]
glave: fix replay of AllocMemory packets with info chained structures

9 years agointel: Be sure to set width & height for depth-only
Courtney Goeltzenleuchter [Thu, 5 Feb 2015 23:35:53 +0000 (16:35 -0700)]
intel: Be sure to set width & height for depth-only

If CmdBindAttachments is called with a depth only attachment
(i.e. for shadow rendering) the width and height were left at
zero and nothing is drawn.

9 years agoBIL: Update BIL version
Courtney Goeltzenleuchter [Thu, 5 Feb 2015 22:35:26 +0000 (15:35 -0700)]
BIL: Update BIL version

9 years agoglave:Fix off by one error in image generation
Tony Barbour [Thu, 5 Feb 2015 20:55:03 +0000 (13:55 -0700)]
glave:Fix off by one error in image generation

9 years agomisc:Fix compiler warning at default Opt level
Tony Barbour [Thu, 5 Feb 2015 18:09:34 +0000 (11:09 -0700)]
misc:Fix compiler warning at default Opt level

9 years agoglave: Fix debugger to export g_pReplaySettings for xglreplayer library
Jon Ashburn [Thu, 5 Feb 2015 20:42:38 +0000 (13:42 -0700)]
glave: Fix debugger to export g_pReplaySettings for xglreplayer library

9 years agoAdd build instructions for Windows.
Ian Elliott [Thu, 5 Feb 2015 19:22:51 +0000 (12:22 -0700)]
Add build instructions for Windows.

9 years agoBIL: Update revision number for BIL
Courtney Goeltzenleuchter [Thu, 5 Feb 2015 19:13:26 +0000 (12:13 -0700)]
BIL: Update revision number for BIL

9 years agotools:Incorperate review feedback on glave screenshots
Tony Barbour [Thu, 5 Feb 2015 16:46:17 +0000 (09:46 -0700)]
tools:Incorperate review feedback on glave screenshots

Move variables into display struct
Make width and height vectors
Change names from snapshot to screenshot
Fix bug when no screenshot frames specified

9 years agoglave:add code to snapshot frames
Tony Barbour [Mon, 2 Feb 2015 20:21:18 +0000 (13:21 -0700)]
glave:add code to snapshot frames

9 years agolayers: Update README.md with current layer status
Tobin Ehlis [Thu, 5 Feb 2015 18:51:35 +0000 (11:51 -0700)]
layers: Update README.md with current layer status

9 years agoglave: Update README for status and also rearrange the sections a little
Jon Ashburn [Thu, 5 Feb 2015 18:47:23 +0000 (11:47 -0700)]
glave: Update README for status and also rearrange the sections a little

9 years agoWin: Eliminate VS2013 miscellaneous additional compiler warnings.
Ian Elliott [Wed, 4 Feb 2015 22:19:32 +0000 (15:19 -0700)]
Win: Eliminate VS2013 miscellaneous additional compiler warnings.

9 years agoWin: Eliminate VS2013 compiler warnings in Glave source.
Ian Elliott [Wed, 4 Feb 2015 22:05:38 +0000 (15:05 -0700)]
Win: Eliminate VS2013 compiler warnings in Glave source.

9 years agoWin: Eliminate VS2013 compiler warnings in auto-gen'd layer code.
Ian Elliott [Wed, 4 Feb 2015 19:15:12 +0000 (12:15 -0700)]
Win: Eliminate VS2013 compiler warnings in auto-gen'd layer code.

9 years agoWin: Eliminate VS2013 compiler warnings for "loader.c" ...
Ian Elliott [Wed, 4 Feb 2015 19:06:46 +0000 (12:06 -0700)]
Win: Eliminate VS2013 compiler warnings for "loader.c" ...

As part of this, eliminated some similar warnings within/across usage of
"loader_platform.h".  One of these is #define'ing _CRT_SECURE_NO_WARNINGS, so
that VisualStudio won't issue warnings with our use of _snprint() (which they
don't consider secure enough; but their desired function doesn't match the
signature of snprintf()).

9 years agoWin: Move some macros to "loader_platform.h"
Ian Elliott [Wed, 4 Feb 2015 18:22:39 +0000 (11:22 -0700)]
Win: Move some macros to "loader_platform.h"

9 years agomisc: Update readme for alpha header post
Courtney Goeltzenleuchter [Thu, 5 Feb 2015 00:50:32 +0000 (17:50 -0700)]
misc: Update readme for alpha header post

9 years agoglave: More fixes to UpdateDescriptors UPDATE_BUFFERS and UPDATE_IMAGES
Jon Ashburn [Wed, 4 Feb 2015 23:26:30 +0000 (16:26 -0700)]
glave: More fixes to UpdateDescriptors UPDATE_BUFFERS and UPDATE_IMAGES

9 years agoglave: Don't dereference null pUserData in APIDump* layers
Tobin Ehlis [Wed, 4 Feb 2015 22:15:11 +0000 (15:15 -0700)]
glave: Don't dereference null pUserData in APIDump* layers

9 years agoglave: Fix bugs with UpdateDescriptors pUpdateChain on replay
Tobin Ehlis [Wed, 4 Feb 2015 21:57:24 +0000 (14:57 -0700)]
glave: Fix bugs with UpdateDescriptors pUpdateChain on replay

9 years agoglave: fix README for tracer standalone server command line options
Jon Ashburn [Wed, 4 Feb 2015 21:44:40 +0000 (14:44 -0700)]
glave: fix README for tracer standalone server command line options

9 years agoglave: Fixes in UpdateDescriptar and ClearDescriptorSets
Jon Ashburn [Wed, 4 Feb 2015 19:57:25 +0000 (12:57 -0700)]
glave: Fixes in UpdateDescriptar and ClearDescriptorSets

Also removed dead replay code for StateTransitions and AttachDescriptorSet

9 years agoglave: Add interpret function for xglCreateDescriptorSetLayout
Jon Ashburn [Wed, 4 Feb 2015 17:55:47 +0000 (10:55 -0700)]
glave: Add interpret function for xglCreateDescriptorSetLayout

9 years agoglave: Create interpret function for pUpdateChain of xglUpdateDescriptors()
Tobin Ehlis [Wed, 4 Feb 2015 17:53:31 +0000 (10:53 -0700)]
glave: Create interpret function for pUpdateChain of xglUpdateDescriptors()

9 years agoglave: fix CreateDescriptorRegion trace/replay
Jon Ashburn [Wed, 4 Feb 2015 16:32:59 +0000 (09:32 -0700)]
glave: fix CreateDescriptorRegion trace/replay

9 years agoglave: Fix trace/replay of CreateDynamicViewportState
Jon Ashburn [Wed, 4 Feb 2015 15:50:35 +0000 (08:50 -0700)]
glave: Fix trace/replay of CreateDynamicViewportState

9 years agoglave: Various fixes for UPDATE_SAMPLERS and PIPELINE_CB_STATE structures
Jon Ashburn [Wed, 4 Feb 2015 00:47:58 +0000 (17:47 -0700)]
glave: Various fixes for UPDATE_SAMPLERS  and PIPELINE_CB_STATE structures

9 years agoglave: Fix EnumerateLayers replay to handle if layer libs differ from tracing
Jon Ashburn [Tue, 3 Feb 2015 20:39:05 +0000 (13:39 -0700)]
glave: Fix EnumerateLayers replay to handle if layer libs differ from tracing

Was not handling the case where the layer libraries enumerated at replay time
were greater than those enumerated at trace time.

9 years agoxgl: Final edits for rev47+ alignment
Mark Lobodzinski [Tue, 3 Feb 2015 22:44:20 +0000 (16:44 -0600)]
xgl:  Final edits for rev47+ alignment

Took care of the remaining substantive differences.  Still many
formatting/commenting differences. Version set to 47.1 to indicate
some post-47 additions.

9 years agolayers: Add validation for mapped mem objects ref'd in cmd buffer
Mark Lobodzinski [Tue, 3 Feb 2015 17:52:26 +0000 (11:52 -0600)]
layers:  Add validation for mapped mem objects ref'd in cmd buffer

If any mem object is still mapped while referenced in a command
buffer, throw a validation error message.

9 years agoglave: Glave updated for resource binding model
Tobin Ehlis [Tue, 3 Feb 2015 21:41:26 +0000 (14:41 -0700)]
glave: Glave updated for resource binding model

In glave trace and replay, account for the fact that CreateDescriptorSetLayout and UpdateDescriptors both take chains of structs.

9 years agoCan compile "loader" and "layers" on Windows and Linux ...
Ian Elliott [Wed, 14 Jan 2015 00:52:38 +0000 (17:52 -0700)]
Can compile "loader" and "layers" on Windows and Linux ...

These directories build and are partially turned-on on Windows, using the "tri"
demo (follow-on commit) and a "NULL driver" that was created out of the
sample/Intel driver.  The GetProcAddress() is not yet finding symbols in the
NULL driver.

For now:

- "C:\Windows\System32" is the default XGL driver directory.  The getenv()
  isn't yet working.  I suggest creating your own #define in order to point to
  where a driver is.

- In order to recognize a Windows driver, we must look at both its prefix and
  suffix (i.e. it is named "XGL_*.dll", e.g. "XGL_i965.dll).

- We autogenerate Windows ".def" files for the layers.  Additional info is:

  - This is necessary in order for a DLL to export symbols that can be queried
    using GetProcAddress().  We can't use the normal Windows approach of
    declaring these functions using "__declspec(dllexport)", because these
    functions are declared in "xgl.h".

  - This involves adding and running the new "xgl-win-def-file-generate.py"
    file.

  - NOTE: Layers don't have the xglInitAndEnumerateGpus() entrypoint, just the
    xglGetProcAddr() entrypoint (and now the xglEnumerateLayers() entrypoint).
    Generating them is pretty simple.

NOTE: In order to build on a 64-bit Windows 7/8 system, I did the following:

- Install VisualStudio 2013 Professional

- Install CMake from: http://www.cmake.org/cmake/resources/software.html

  - I let it add itself to the system PATH environment variable.

- Install Python 3 from: https://www.python.org/downloads

  - I let it add itself to the system PATH environment variable.

- Obtain the Git repository, checkout the "ian-150127-WinBuild" branch.

- Using a Cygwin shell: I did the following:

  - "cd" to the top-level directory (i.e. the one that contains the ".git"
    directory).

  - "mkdir _out64"

  - "cd _out64"

  - "cmake -G "Visual Studio 12 Win64" .."

- At this point, I used WindowsExplorer to open the "XGL.sln" file.  I can
  build.  CMake causes the build shortcut to be "Ctrl-Shift-B" instead of the
  normal "F7".  I had to right-click the "ALL_BUILD" project, go to
  Properties->Debugging and change the debug Command and Working Directory to
  point to "tri.exe" and where the executable are.  At this point, I can debug
  (using the normal "F5" shortcut).

9 years agoglave: On replay remap buffer handle for CreateBufferView
Jon Ashburn [Tue, 3 Feb 2015 18:24:08 +0000 (11:24 -0700)]
glave: On replay remap buffer handle for CreateBufferView

9 years agolayers: Add object tracker validation for dynamic state objects
Mark Lobodzinski [Tue, 3 Feb 2015 16:06:31 +0000 (10:06 -0600)]
layers:  Add object tracker validation for dynamic state objects

Add validation for dynamic state objects (viewport, raster, color-
blend and depth-stencil) to the object-tracker layer.

9 years agoloader: Make sure loader instances get updated upon DestroyInstance()
Jon Ashburn [Tue, 3 Feb 2015 16:26:59 +0000 (09:26 -0700)]
loader: Make sure loader instances get updated upon DestroyInstance()

9 years agoglave: Only remove replay handle maps on DestroyInstance
Jon Ashburn [Tue, 3 Feb 2015 16:17:12 +0000 (09:17 -0700)]
glave: Only remove replay handle maps on DestroyInstance

This only works with a single instance at any given time.

9 years agoglave: Fix tracing CreateInstance appInfo and replay DestroyInstance rm map
Jon Ashburn [Tue, 3 Feb 2015 15:57:28 +0000 (08:57 -0700)]
glave: Fix tracing CreateInstance appInfo and replay DestroyInstance rm map

9 years agoglave: Fix tracing and replay for AllocMemory nested structures
Jon Ashburn [Tue, 3 Feb 2015 14:33:48 +0000 (07:33 -0700)]
glave: Fix tracing and replay for AllocMemory  nested structures

9 years agorender_pass: Add CmdBegin{End}RenderPass()
Jon Ashburn [Mon, 2 Feb 2015 16:58:11 +0000 (09:58 -0700)]
render_pass:  Add CmdBegin{End}RenderPass()

This is part of rev 47 but was accidentally skipped.

9 years agoglave: Fix trace packets for Instancing related APIs
Jon Ashburn [Mon, 2 Feb 2015 19:39:24 +0000 (12:39 -0700)]
glave: Fix trace packets for Instancing related APIs

Also fix EnumerateLayers trace start time.

9 years agoxgl: Fix typo in memory barriers APIs
Mark Lobodzinski [Mon, 2 Feb 2015 17:55:52 +0000 (11:55 -0600)]
xgl: Fix typo in memory barriers APIs

Misspelled a parameter name, fixup for header cplusplus definition.

9 years agoglave: Added comments noting glave work still to be done for xgl.h updates
Tobin Ehlis [Thu, 22 Jan 2015 19:29:31 +0000 (12:29 -0700)]
glave: Added comments noting glave work still to be done for xgl.h updates

Conflicts:
glave-generate.py

9 years agolayers: Continuing to update DrawState for new binding model
Tobin Ehlis [Thu, 22 Jan 2015 17:45:21 +0000 (10:45 -0700)]
layers: Continuing to update DrawState for new binding model

Conflicts:
layers/draw_state.c
layers/draw_state.h

9 years agolayers: Updated API codegen to handle AllocDescriptorSets
Tobin Ehlis [Tue, 20 Jan 2015 16:48:48 +0000 (09:48 -0700)]
layers: Updated API codegen to handle AllocDescriptorSets

9 years agoglave: Trace and replay codegen handles AllocDescriptorSets
Tobin Ehlis [Tue, 20 Jan 2015 20:50:59 +0000 (13:50 -0700)]
glave: Trace and replay codegen handles AllocDescriptorSets

Conflicts:
glave-generate.py

9 years agolayers: Updating MemTracker and DrawState interfaces to match API updates
Tobin Ehlis [Mon, 19 Jan 2015 15:42:29 +0000 (08:42 -0700)]
layers: Updating MemTracker and DrawState interfaces to match API updates

Still need to update functionality internal to the layers.

Conflicts:
layers/draw_state.c
layers/mem_tracker.c

9 years agoVarious code clean-ups for glave and codegen with updated xgl.h
Tobin Ehlis [Fri, 16 Jan 2015 22:13:34 +0000 (15:13 -0700)]
Various code clean-ups for glave and codegen with updated xgl.h

Conflicts:
glave-generate.py

9 years agoAdded Mark's change to track Fence submit
Tobin Ehlis [Fri, 16 Jan 2015 15:56:30 +0000 (08:56 -0700)]
Added Mark's change to track Fence submit

Conflicts:
layers/object_track.h

9 years agoGlave now compiling although I'm certain it's very broken.
Tobin Ehlis [Fri, 16 Jan 2015 00:53:54 +0000 (17:53 -0700)]
Glave now compiling although I'm certain it's very broken.

Time to start sifting through the code now to make it as functional as possible for when the driver catches up and we can really test things again.

Conflicts:
glave-generate.py

9 years agoAll of the codegen for layers is now working well enough that the generated layers...
Tobin Ehlis [Fri, 16 Jan 2015 00:51:52 +0000 (17:51 -0700)]
All of the codegen for layers is now working well enough that the generated layers will compile.

Lots of updates required to DrawState and MemTracker layers so just commenting them out the build initially.

Conflicts:
layers/draw_state.c
layers/multi.cpp
xgl-layer-generate.py
xgl.py

9 years agoinstance: Remove xglInitAndEnumerateGpus
Jon Ashburn [Thu, 29 Jan 2015 23:54:38 +0000 (16:54 -0700)]
instance: Remove xglInitAndEnumerateGpus

9 years agoloader: Add loops for multiple instances on global debug calls
Jon Ashburn [Thu, 29 Jan 2015 23:44:24 +0000 (16:44 -0700)]
loader: Add loops for multiple instances on global debug calls

9 years agotests: Convert to using Instancing APIs rather than xglInitAndEnumerateGpus
Jon Ashburn [Thu, 29 Jan 2015 22:48:00 +0000 (15:48 -0700)]
tests: Convert to using Instancing APIs rather than xglInitAndEnumerateGpus

9 years agodemos: Convert to using Instancing API rather than xglInitAndEnumerateGpus()
Jon Ashburn [Thu, 29 Jan 2015 22:47:01 +0000 (15:47 -0700)]
demos: Convert to using Instancing API rather than xglInitAndEnumerateGpus()

9 years agoloader: Finish implement CreateInstance and DestroyInstance
Jon Ashburn [Thu, 29 Jan 2015 22:45:51 +0000 (15:45 -0700)]
loader: Finish implement CreateInstance and DestroyInstance

9 years agoloader: Implement EnumerateGpus()
Jon Ashburn [Thu, 29 Jan 2015 02:57:09 +0000 (19:57 -0700)]
loader: Implement EnumerateGpus()

9 years agointel: Implement EnumerateGpus()
Jon Ashburn [Thu, 29 Jan 2015 02:15:45 +0000 (19:15 -0700)]
intel: Implement EnumerateGpus()

9 years agointel: Instance functions create and destroy objects
Jon Ashburn [Thu, 29 Jan 2015 01:26:16 +0000 (18:26 -0700)]
intel: Instance functions create and destroy objects

Also they do the same init and removal as existing InitAndEnumerateGpus.

9 years agoloader: Place icds into the instance, scan icds prior to instance create
Jon Ashburn [Wed, 28 Jan 2015 18:01:35 +0000 (11:01 -0700)]
loader: Place icds into the instance, scan icds prior to instance create

9 years agoinstance: Added initial {Create|Destroy}Instance() and xglEnumerateGpus().
Jon Ashburn [Mon, 26 Jan 2015 21:51:40 +0000 (14:51 -0700)]
instance: Added initial {Create|Destroy}Instance() and xglEnumerateGpus().

For now, retain the existing InitAndEnumerateGpus and have it create one
instance. New APIs aren't fully implemented yet in driver or loader.

9 years agoxgl: Fix pMemBarriers references
Mark Lobodzinski [Thu, 29 Jan 2015 20:24:14 +0000 (14:24 -0600)]
xgl:  Fix pMemBarriers references

Arrays of MemBarrier pointers were incorrectly declared.  Reference
bug #13273, for xgl header rev #42.

9 years agoxgl: Remove XGL_* typedef wrappers
Mark Lobodzinski [Thu, 29 Jan 2015 14:55:56 +0000 (08:55 -0600)]
xgl:  Remove XGL_* typedef wrappers

Part of moving to xgl.h rev#38, svn rev 29293-29302

9 years agoxgl: Updated headers for some missed SVN revisions
Mark Lobodzinski [Thu, 29 Jan 2015 16:04:52 +0000 (10:04 -0600)]
xgl:  Updated headers for some missed SVN revisions

Miscellaneous updates for SVN revs 29191, 29205 and 29241.  Basically
adding MAX_ENUM, copyright notices, and improved type definitions.

9 years agointel: Fix DBG_OBJECT_TYPE range
Jon Ashburn [Wed, 28 Jan 2015 22:05:09 +0000 (15:05 -0700)]
intel: Fix DBG_OBJECT_TYPE range

9 years agoxgl: Add fast clear APIs
Mark Lobodzinski [Wed, 28 Jan 2015 19:29:48 +0000 (13:29 -0600)]
xgl:  Add fast clear APIs

Added new APIs for optimized clears of color and depth buffers.
Bug# 13172, due to a bug in rev39, this also accounts for the change
in rev41.

9 years agoxgl: Remove extraneous structSizes
Courtney Goeltzenleuchter [Tue, 27 Jan 2015 18:07:21 +0000 (11:07 -0700)]
xgl: Remove extraneous structSizes

Alpha header rev: r29437
Bug #13299

9 years agoxgl: header updates for XGL_RESULT
Courtney Goeltzenleuchter [Tue, 27 Jan 2015 17:54:01 +0000 (10:54 -0700)]
xgl: header updates for XGL_RESULT

alpha header version: r29593
XGL_RESULT is the XGL return codes.
Agreement part of F2F Jan 26, 2015.

9 years agoxgl: fix constness of pointers
Chia-I Wu [Wed, 28 Jan 2015 06:00:47 +0000 (14:00 +0800)]
xgl: fix constness of pointers

9 years agoxgl: Add framebuffer-no-attachment support
Mark Lobodzinski [Tue, 27 Jan 2015 19:24:03 +0000 (13:24 -0600)]
xgl:  Add framebuffer-no-attachment support

Add default values if no attachments are present, correctly handle
override values when attachments are present.  Bug# 13212, header
revision #36.

9 years agoUpdate XGL_FORMAT.
Jeremy Hayes [Fri, 23 Jan 2015 15:51:43 +0000 (08:51 -0700)]
Update XGL_FORMAT.

9 years agoxgl: Add begin/end_range to all enums
Mark Lobodzinski [Mon, 26 Jan 2015 23:06:34 +0000 (17:06 -0600)]
xgl:  Add begin/end_range to all enums

Cosmetic change to xgl header for rev# 37, bug# 13244.

9 years agoxgl: Rename XGL_WAIT_EVENT enum in header
Mark Lobodzinski [Mon, 26 Jan 2015 23:02:32 +0000 (17:02 -0600)]
xgl:  Rename XGL_WAIT_EVENT enum in header

For svn rev# 29226, generalized an XGL_WAIT_EVENT enum.

9 years agoxgl: Bump rev for Command Atomic update
Courtney Goeltzenleuchter [Mon, 26 Jan 2015 22:09:47 +0000 (15:09 -0700)]
xgl: Bump rev for Command Atomic update

Bug #: 12997
Alpha header revision: r29249

9 years agoxgl: Remove xglCmdAtomics
Courtney Goeltzenleuchter [Wed, 21 Jan 2015 16:59:59 +0000 (09:59 -0700)]
xgl: Remove xglCmdAtomics

Implement changes for alpha header version 0.35.
Bug #12998.

9 years agoxgl: Rename semaphore enums
Mark Lobodzinski [Mon, 26 Jan 2015 16:34:00 +0000 (10:34 -0600)]
xgl:  Rename semaphore enums

Cosmetic xgl header change for xgl.h revision #40.

9 years agotests: Fix testbinding alloc_mem method
Jon Ashburn [Thu, 22 Jan 2015 18:40:11 +0000 (11:40 -0700)]
tests: Fix testbinding alloc_mem method

Set memProps for BUFFER allocations. Keep track of primary_mem if have
multiple allocations based on which allocation req has a BUFFER or IMAGE type.

9 years agointel: Set the memType in mem_requirements for all objects
Jon Ashburn [Thu, 22 Jan 2015 17:52:13 +0000 (10:52 -0700)]
intel: Set the memType in mem_requirements for all objects

Conflicts:
icd/intel/event.c
icd/intel/img.c

9 years agointel: Fix CreateImage format_class for linear tiled images.
Jon Ashburn [Wed, 21 Jan 2015 00:22:07 +0000 (17:22 -0700)]
intel: Fix CreateImage format_class for linear tiled images.

9 years agomemory alloc: Remove last heaps from memory alloc and requirements
Jon Ashburn [Tue, 20 Jan 2015 23:59:42 +0000 (16:59 -0700)]
memory alloc: Remove last heaps from  memory alloc  and requirements

Also reorder memory_alloc_info struct as memPriority added back in as last
member in struct.

Conflicts:
demos/cube.c
demos/tri.c
icd/intel/buf.c
icd/intel/event.c
icd/intel/img.c
icd/intel/mem.c
icd/intel/pipeline.c
icd/intel/query.c
include/xgl.h
tests/image_tests.cpp
tests/init.cpp
tests/render_tests.cpp
tests/xgltestbinding.cpp
tests/xgltestbinding.h

9 years agomemory alloc: Remove alignment from alloc_info structure
Jon Ashburn [Tue, 20 Jan 2015 23:38:02 +0000 (16:38 -0700)]
memory alloc: Remove alignment from alloc_info structure

Conflicts:
icd/intel/mem.c

9 years agomemory alloc: Remove MEMORY_ALLOC_FLAGS add MEMORY_TYPE
Jon Ashburn [Tue, 20 Jan 2015 22:06:59 +0000 (15:06 -0700)]
memory alloc: Remove MEMORY_ALLOC_FLAGS  add MEMORY_TYPE

9 years agomemory alloc: Remove memory_heap flags replace with memory_property flags
Jon Ashburn [Tue, 20 Jan 2015 20:55:32 +0000 (13:55 -0700)]
memory alloc:  Remove memory_heap flags replace with memory_property flags

Conflicts:
include/xgl.h
tests/image_tests.cpp
tests/init.cpp
tests/xgltestbinding.h

9 years agomemory alloc: For buffer allocations use the buffer_info structure
Jon Ashburn [Tue, 20 Jan 2015 15:50:12 +0000 (08:50 -0700)]
memory alloc:  For buffer allocations use the buffer_info structure

Add to the tests and demos  the buffer usage.

Conflicts:
tests/xgltestbinding.cpp

9 years agomemory alloc: Add IMAGE and BUFFER alloc info structures
Jon Ashburn [Mon, 19 Jan 2015 22:00:26 +0000 (15:00 -0700)]
memory alloc: Add IMAGE and BUFFER alloc info structures

For images have the tests fill in the IMAGE_ALLOC structures.  For buffers
this is not yet done.

Conflicts:
demos/cube.c
demos/tri.c
include/xgl.h
tests/init.cpp
tests/xgltestbinding.cpp

9 years agomemory alloc: Add MEMORY_ALLOCATION_COUNT support and usage in tests.
Jon Ashburn [Fri, 16 Jan 2015 16:37:43 +0000 (09:37 -0700)]
memory alloc: Add MEMORY_ALLOCATION_COUNT support and usage in tests.

Driver always does one allocation but tests support drivers with N allocations.

Conflicts:
demos/cube.c
demos/tri.c
tests/image_tests.cpp
tests/render_tests.cpp

9 years agomemory alloc: Add allocation index to BindObjectMemory
Jon Ashburn [Thu, 15 Jan 2015 17:39:19 +0000 (10:39 -0700)]
memory alloc: Add allocation index to BindObjectMemory

For now it is always index 0.  Updates, driver, glave, tests, demos, include,
and layers.

9 years agomemory alloc: Remove xglGetMemoryHeapXXX from driver,loader, glave, layers
Jon Ashburn [Wed, 14 Jan 2015 17:44:00 +0000 (10:44 -0700)]
memory alloc: Remove xglGetMemoryHeapXXX from driver,loader, glave, layers

9 years agotests: Remove calls to xglGetMemoryHeapXXX
Jon Ashburn [Wed, 14 Jan 2015 16:58:23 +0000 (09:58 -0700)]
tests: Remove calls to xglGetMemoryHeapXXX

Conflicts:
tests/xgltestbinding.cpp

9 years agodemos: Remove calls to xglGetMemoryHeapXXX in xglinfo
Jon Ashburn [Wed, 14 Jan 2015 16:56:21 +0000 (09:56 -0700)]
demos: Remove calls to xglGetMemoryHeapXXX in xglinfo

9 years agoxgl: move to new resource binding model
Chia-I Wu [Sun, 4 Jan 2015 08:27:24 +0000 (16:27 +0800)]
xgl: move to new resource binding model

All except layout(set=) is supported.  The change to
pipeline_compiler_interface.{cpp,h} is ugly and fragile.  It should be fixed
after adding layout(set=) support.

9 years agodemos, tests: use XGL_BUFFER_VIEW_RAW for constant buffers
Chia-I Wu [Fri, 16 Jan 2015 14:31:25 +0000 (22:31 +0800)]
demos, tests: use XGL_BUFFER_VIEW_RAW for constant buffers

9 years agointel: initialize raw buffer SURFACE_STATEs on view creation
Chia-I Wu [Fri, 16 Jan 2015 09:38:37 +0000 (17:38 +0800)]
intel: initialize raw buffer SURFACE_STATEs on view creation

Initialize the SURFACE_STATE for fs once in intel_buf_view_create().  There is
one subtle change: we only use overridden SURFACE_STATEs for raw buffers now.

9 years agocomplete fixed-function vertex fetch support
Chia-I Wu [Sun, 18 Jan 2015 06:51:02 +0000 (14:51 +0800)]
complete fixed-function vertex fetch support

Update xgl.h (cosmetic changes only).  Add support for new formats.

v2: fix blit tests and enhance xglinfo for new formats

9 years agointel: fix DEPTH_STENCIL_STATE on Gen6
Chia-I Wu [Sat, 24 Jan 2015 04:49:28 +0000 (12:49 +0800)]
intel: fix DEPTH_STENCIL_STATE on Gen6

pipeline_build_depth_stencil() should be called on all Gens.

9 years agointel: set stencil masks for front and back faces
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 22:21:37 +0000 (15:21 -0700)]
intel: set stencil masks for front and back faces

9 years agoBIL: Update to support descriptor set GLSL features
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 21:00:52 +0000 (14:00 -0700)]
BIL: Update to support descriptor set GLSL features

9 years agoxgl: Fix syntax error
Courtney Goeltzenleuchter [Fri, 23 Jan 2015 18:47:02 +0000 (11:47 -0700)]
xgl: Fix syntax error