Commit Graph

9649 Commits

Author SHA1 Message Date
baldurk 46c2b8cf4c Reset pixel unpack state when uploading proxy texture data in GL 2019-11-13 10:04:17 +00:00
baldurk aa942d243c Remove duplicate VK_EXT_pci_bus_info extension whitelist 2019-11-13 10:04:00 +00:00
baldurk 6653316a62 Protect against window being closed during async render thread work 2019-11-12 20:44:35 +00:00
baldurk 75d323c2b6 Don't rewrap queues when multiple queues are mapped to one on replay 2019-11-12 20:44:35 +00:00
baldurk d6fdd2893f Fix some broken rst specifiers in docstrings 2019-11-12 20:44:35 +00:00
baldurk 47fdb5add3 Exclude StructuredBufferList, StructuredObjectList from python docs
* These types should be mapped/treated invisibly as native python lists.
2019-11-12 20:44:35 +00:00
baldurk 8b7d23cba1 Rename SDObjectData::str member in python, to avoid confusion
* Although it's legal, the language type is 'str' so this could cause
  namespacing issues potentially
2019-11-12 20:44:35 +00:00
baldurk 0544c737f7 Don't load stale/unused descriptor contents in initial contents 2019-11-12 20:44:35 +00:00
baldurk 2f6dc63458 Disable crash handler when chrome or chrome derivative is detected
* The volume of invalid crash reports from people injecting into these programs
  is massive, and some filtering has to happen.
2019-11-12 20:44:35 +00:00
baldurk 88879dd349 Disable compute support on GL < 4.2. Closes #1591 2019-11-12 20:44:35 +00:00
baldurk b35eca4a62 Ensure tool path cache doesn't get destroyed before adb shuts down 2019-11-12 20:44:34 +00:00
baldurk d236b784dd Don't add attachments as parent resources for imageless framebuffer 2019-11-12 20:44:34 +00:00
baldurk 7e08bf6573 Filter the list of formats listed in 'convert' help. Closes #1590
* Only formats that support opening should be listed under the help for --input-
  format.
2019-11-12 20:44:34 +00:00
Steve Karolewics 9b141086c0 Move some functions to common locations for upcoming D3D12 usage.
Some work for shader debugging is identical to setting up the quad
overlay, so I've moved that logic to their own functions.
Some portions of creating a global shader debug state, and the
entirety of the initial shader debug state were agnostic of D3D API,
so they now exist in DXBC code.
2019-11-12 12:33:03 +00:00
Gert Wollny b5890155b5 gl: Consider also ARB_shader_bit_encoding to enable bit conversion
On drivers only supportinmg OpenGL 3.3, like llvmpipe, ARB_gpu_shader5 may
not be available, but (u)intBitsToFloat and floatBitsTo* are part of GLSL 330,
and are also availabe by enabling the extension ARB_shader_bit_encoding.

Consequently, check for this extension when ARB_gpu_shader5 is not available,
require it when available, and enable the bit code path using these bit cast
functions accordingly.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
2019-11-11 14:50:46 +00:00
Gert Wollny 44e7bbe439 gl: Handle the use of (u)intBitsToFloat by using a separate define
The shader code is preprocessed with glslang that doesn't use the driver
capabilities to define macros indicating the availability of extensions,
instead it uses its own set of supported extensions, and in this case
it supports ARB_gpu_shader5. As a result the generated shader code would
make use of the (u)intBitsToFloat conversion functions based on the define
GL_ARB_gpu_shader5 also if the driver doesn't support this extension.

Hence an additional define is added to indicate whether bit casting
functions are available, and the extension is only enabled/required when
the driver actually supports it.

Closes: #1586

v2: - Fix ws
    - reword commit message

v3: - check for ARB_shader_bit_encoding and ARB_gpu_shader5 in shader creation code
    - don't enable GL_ARB_gpu_shader5 unconditionally in the OpenGL shader
    - reword commit message

v4: Use an additional define HAS_BIT_CONVERSION to make sure gslang correctly
    parses the shader code (Baldurk).

v6: - Add HAS_BIT_CONVERSION also with the GLES code path (Baldur)
    - split patch
    - reword commit message(s) (Baldur)

v7: fix ws

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>

lala
2019-11-11 14:50:46 +00:00
Steve Karolewics 9cb2f1d0f5 Prevent overflow in gathering D3D12 descriptor counts 2019-11-07 11:01:57 +00:00
mweber 2b7753af67 Implemented PerformanceCounterViewer::OnEventChanged handling
Implemented PerformanceCounterViewer::OnEventChanged to handle global event changes.
Behaviour can be toggled on/off via a new 'Sync Views' button similar to the Mesh Viewer; the default is off.
2019-11-06 17:52:00 +00:00
Steve Karolewics fa232b7f14 Move some shader debug functions to a shared location.
In early testing with D3D12 shader debugging, these functions did
not require any differences from the D3D11 versions. Moving them to
a common location to avoid some code duplication.
2019-11-06 09:10:51 +00:00
baldurk 67d73af8c8 Fix capture and replay of D3D12 render passes. Closes #1574 2019-11-04 12:58:40 +00:00
Steve Karolewics df104e2062 Add file and function declarations for D3D12 debugging. 2019-11-04 10:53:39 +00:00
baldurk 9a5c4531e9 Explicitly document what capturing frame 0 means. 2019-11-01 11:31:25 +00:00
baldurk 84152a74bf Tweak issue template and documentation
* Primarily to make sure that it is very clear using the template is expected.
2019-11-01 11:18:24 +00:00
baldurk ad8a23e9c3 Handle backbuffers in GL that are 0 width or height. Closes #1571 2019-11-01 10:58:54 +00:00
Aliya Pazylbekova 36c7d6d623 Vk pixel history: Add stencil and event flags 2019-10-30 08:28:57 +00:00
baldurk 86c2352a37 Fix a few issues with 1D array textures on GL 2019-10-29 18:08:34 +00:00
baldurk 48c98a3dc1 Add debug-time options for debugging the remote server 2019-10-29 18:08:34 +00:00
baldurk 14bc99947c Add a debug-only mode to log everything going through a serialiser
* We also allow structured export on write, again in debug builds only
2019-10-29 18:08:33 +00:00
baldurk 253194c9a1 Support using atomic-append logging for multiple file outputs
* The primary user is the main logfile itself, but it's useful for debugging
  purposes to be able to log to a file and still open it externally in a viewer
  without having the logging code take exclusive access to it.
2019-10-29 18:08:33 +00:00
baldurk 99934e799a Make sure to bounds check static instanced vertex data for debugging 2019-10-29 16:37:36 +00:00
baldurk a8baf4fa49 Fix compile error 2019-10-28 19:25:02 +00:00
baldurk 6a39e4d6f8 Fix deletion of image viewer's IReplayDriver 2019-10-28 18:57:52 +00:00
baldurk 3674e5a494 Add guidance on filing good issues, and update issue template
* Issues not following the template will be closed. It is too much of a drain on
  project resources to deal with bug reports that are not well formatted and
  unclear. The template is easy to fill out and does not ask much.
2019-10-28 18:00:25 +00:00
baldurk 038028f4ba Use integer copy for MSAA<->array when texture is typeless
* Copying as floats may not be safe as subnormal values will get flushed.
2019-10-28 16:16:28 +00:00
baldurk b9fbdc0ff0 Add explicit error for legacy CxV8U8 texture format 2019-10-28 12:04:05 +00:00
baldurk 0fe6be3ac6 Support YUY2/UYVY formats in DDS files
* These can only be supported if the proxy texture can be created
2019-10-28 12:03:50 +00:00
baldurk ec29e92abf Add support for old D32F_LOCKABLE format 2019-10-28 11:27:55 +00:00
baldurk 15c0244fd4 Add support for DXT2 / DXT4 aliases of DXT3 (BC2) and DXT5 (BC3)
* The only difference in these is whether or not pre-multiplied alpha is assumed
  to be used, and that doesn't change the actual data - only the interpretation.
2019-10-28 11:23:37 +00:00
baldurk b6c9b6298f Only read pImmutableSamplers pointer for sampler descriptors 2019-10-28 11:17:54 +00:00
baldurk 938d8f63f5 Add missing check for DXGI_FORMAT_B8G8R8X8_UNORM 2019-10-25 18:29:30 +01:00
baldurk 273a87e606 Fix calculation of array byte stride for structs with padding in DXBC
* Instead of summing the members offsets, we set it to the offset of the last
  member plus the last member's size.
2019-10-25 18:29:30 +01:00
baldurk a452c7f4c8 If sync primitive queries are called in a loop don't serialise each call 2019-10-25 18:29:30 +01:00
baldurk c40c97558a Add helper to set wide-string name on objects 2019-10-25 18:29:30 +01:00
baldurk 85b7f88737 Don't throw an error when specifying unused view parameters 2019-10-25 18:29:30 +01:00
baldurk 6aec6b76a7 Fix fetching of view parameters for MSAA array textures on D3D11 2019-10-25 18:29:30 +01:00
baldurk ee2a491f20 Fix status bar display of A8 textures 2019-10-25 18:29:30 +01:00
Piotr Szpetkowski 343fbed90a Update Vulkan features with VK_EXT_debug_utils 2019-10-25 16:53:29 +01:00
baldurk e53b8d82d0 In SPDB processing, try normalising filenames if we don't get a match
* Sometimes it seems like the filenames will differ between if \ is used or /,
  so try again with normalising everything to /
2019-10-24 20:16:39 +01:00
baldurk 43432a4650 Add D3D11 test helper for setting rasterizer state 2019-10-24 18:02:54 +01:00
baldurk cc0a539364 Set window title from test name 2019-10-24 18:02:54 +01:00