321 Commits

Author SHA1 Message Date
baldurk 2418a8faef Add a per-test duration log when running tests 2020-01-15 11:24:41 +00:00
baldurk b34c325f24 Make Iter_test.py load-and-runnable in the UI without breaking autotests 2020-01-14 18:02:10 +00:00
Benson Joeris a64d0df073 Add input attachment case to vk_separate_depth_stencil_layouts demo
Change-Id: I06273c36cb468eebf360dbd742a8f95b7f9aeeaf
2020-01-14 18:01:58 +00:00
baldurk 1758b32045 Add a test of callstack collection 2020-01-13 19:04:44 +00:00
baldurk 86f39640d0 Add shader editing tests on D3D 2020-01-13 18:18:59 +00:00
Benson Joeris 7ba61adc01 Add vk_separate_depth_stencil_layouts demo
Change-Id: Ia66edbd53aa2b21426ecbea609bd8bbbd3b278b5
2020-01-09 17:57:19 +00:00
Benson Joeris 0d5324f708 Fix alignment bug in demo helper
Change-Id: I890bea8ddba6d47074dcf9135443c61f2601a972
2020-01-09 17:57:19 +00:00
baldurk 5255db7966 Handle tkinter not importing and disable relevant test. Closes #1668 2020-01-08 19:15:52 +00:00
baldurk 72cd54aa0b Only import tkinter when needed
* Otherwise this could fail if tkinter isn't available on platforms where we're
  not even going to run the test
2020-01-08 19:10:51 +00:00
baldurk a05622b37e Force stencil swizzled output to only output green
* On some GPUs the stencil output comes in all channels, not just green, and
  it's unclear if this is legal or not. To be safe just mask out the green we
  expect.
2020-01-08 19:10:51 +00:00
baldurk 8f909275a7 Add tests of RGP capturing 2020-01-07 17:59:10 +00:00
baldurk 29a650d859 Don't delete the 0 VAO or FBO, even if the application asks nicely 2020-01-07 17:28:17 +00:00
baldurk 37f762a08f Use renderdoc-specific name for keystore alias on android 2020-01-07 17:28:17 +00:00
baldurk 5ef02841b8 Build VS2019 on appveyor 2020-01-06 16:29:23 +00:00
baldurk 2916c0f9f7 Update copyright years to 2020 2020-01-06 16:20:45 +00:00
baldurk 6d85b9e990 Upgrade travis to run on bionic
* The python we were using on trusty was EOL and so breaking in sphinx. Rather
  than continuing on trusty, we upgrade to bionic and deliberately target gcc-5
  and clang-3.8 (the only thing we care about being old/minspec to ensure we
  don't break it).
2020-01-06 16:20:44 +00:00
baldurk b692b95967 No longer upgrade python in travis OSX build, but overwrite links
* We want to be sure that python3 is found, not python2. Travis's python is new
  enough but we need to force-link it
2020-01-06 16:20:44 +00:00
Steve Karolewics a9a2c3e359 Add tests for viewing depth with ClearBeforeDraw.
Also updated documentation/README files to reflect the changes and
help others get up to speed on editing tests/documentation.
2019-12-20 20:11:53 +00:00
baldurk dbbfe4c35c Fix clang warning about adding to string literal
* This is what we want to do but it's admittedly quite strange
2019-12-20 15:09:33 +00:00
baldurk 82745ce562 Add some markers to vulkan texture zoo data rendering 2019-12-19 21:50:13 +00:00
baldurk 2620f0bb8c Add missing BGR flip for UINT/SINT textures in vulkan texture zoo 2019-12-19 21:50:13 +00:00
baldurk c22a5f3622 Add GL test helper to make compute program 2019-12-18 19:09:18 +00:00
baldurk cde17e9710 Set NEAREST sampling for textures in GL texture zoo
* This is needed particularly for integer textures which are incomplete if
  sampled (even with a non-sampling instruction) with the default LINEAR
  filtering.
2019-12-18 19:09:18 +00:00
baldurk b123ef42a9 Check that our MSAA sample count is supported in GL texture zoo test 2019-12-18 19:09:18 +00:00
baldurk 0f26e3cb6e Allow images to be unsupported 2019-12-13 11:46:28 +00:00
baldurk 08ccab2a7f Prefer VK_LAYER_KHRONOS_validation for debugging if available 2019-12-13 11:09:57 +00:00
baldurk ed53548731 Check for optional vertex buffer format support in vulkan vertex zoo 2019-12-13 11:07:32 +00:00
baldurk 6bbf4cb209 Allow fallback to glslangValidator in tests for compiling SPIR-V 2019-12-12 17:58:52 +00:00
baldurk 848b58826d Ensure we ignore unused parameters in DescriptorUpdateTemplateCreateInfo 2019-12-12 17:58:52 +00:00
baldurk 0773f13949 Ensure re-used handles in descriptor sets don't cause problems
* Previously if a handle was reused, and then a stale descriptor referencing the
  old handle was removed it would remove the *new* object from the list of
  referenced resources. This could cause a resource to be not included in a
  capture if nothing else added a new reference.
2019-12-12 17:58:52 +00:00
baldurk 39793cf850 Renderpass barriers apply to whole 3D texture even when using one slice
* When the renderpass has an initialLayout = UNDEFINED, that applies to the
  whole resource on 3D textures even if we're only rendering to a slice at a
  time
2019-12-12 17:58:51 +00:00
baldurk f8ff6b4f6c Fix parameters for rendering 3D depth images in texture zoos 2019-12-12 17:58:51 +00:00
baldurk c63baeb609 Bind unused pixel pack/unpack buffers in GL_Resource_Lifetimes test
* This ensures having them around doesn't break capture.
2019-12-11 16:59:50 +00:00
baldurk 7726dc1cd0 Test glCreateShaderProgramv use in GL_Resource_Lifetimes test 2019-12-11 16:52:20 +00:00
baldurk 67082e037d Fix GL texture zoo handling of RGB9E5 2019-12-10 19:39:08 +00:00
baldurk 723c293414 Update vulkan headers and implement VK_EXT_tooling_info. Closes #1632 2019-12-09 16:46:26 +00:00
baldurk 6d1d302491 Fix a number of warnings identified by higher clang warning levels
* We enable a couple of high signal-to-noise warnings in all clang builds
2019-12-02 20:41:28 +00:00
baldurk 289e159072 Add padding to struct definitions in shaders, for better formatting 2019-11-29 13:53:45 +00:00
baldurk 77b5c391e9 Check that we handle padding and alignment around structs
* On all APIs structs are aligned up to 16-byte alignment, and on D3D as with
  arrays then elements coming after the struct can be packed into the padding
  after the last struct element.
2019-11-29 13:53:44 +00:00
baldurk b16dda9d4a Update to vulkan headers 1.1.129
* Expand handling for EXT_buffer_device_address to cover
  KHR_buffer_device_address
2019-11-27 16:14:40 +00:00
baldurk 24c0b018ea Fix types used for non-uint types in GL_Texture_Zoo test 2019-11-27 12:06:25 +00:00
baldurk f7e5199cf4 Clamp out-of-bounds undefined results for resinfo 2019-11-27 11:02:25 +00:00
baldurk 31c962bf51 Free undefined image in VK_Image_layouts test
* The free() function should also destroy the image/buffer not just free the
  memory.
2019-11-26 23:42:16 +00:00
baldurk 279a2ec69d Add texture zoo tests
* These tests ensure that texture rendering works correctly for all different
  types of texture types, and for all formats, across different APIs, including
  across a remote-proxy connection.
2019-11-26 17:38:27 +00:00
baldurk db563bb0bf Refactor public interface around handling of textures
* Subresource handling is more consistent - we pass around a struct now that
  contains the array slice, mip level, and sample. We remove the concept of
  'MSAA textures count samples as extra slices within the real slices' and
  internalise that completely. This also means we have a consistent set
  everywhere that we need to refer to a subresource.
* Functions that used to be in the ReplayOutput and use a couple of implicit
  parameters from the texture viewer configuration are now in the
  ReplayController and take them explicitly. This includes GetMinMax,
  GetHistogram, and PickPixel.
* Since these functions aren't ReplayOutput relative, if you want to decode the
  custom shader texture or the overlay texture you need to pass that ID
  directly.
2019-11-26 17:38:25 +00:00
baldurk c547937597 Add helpers for tests checking PCI vendorIDs/driver versions 2019-11-25 23:36:45 +00:00
baldurk f35e082228 Keep track of VmaAllocation for each image/buffer and free it
* VMA requires us to free each suballocation even on shutdown where we just want
  to block-free
2019-11-25 23:36:44 +00:00
baldurk 284996ae2c Check for errors on queue submissions 2019-11-25 23:36:44 +00:00
baldurk b222d6388c Don't flush bufinfo/resinfo opcodes
* The input miplevel is an integer even if the outputs are floats. The outputs
  won't be denormal as they're dimensions etc.
2019-11-22 15:08:16 +00:00
baldurk 9de4931213 Don't ever flush immediate values in shader debugging
* We assume that fxc won't output a denormalised float in the bytecode, and this
  prevents us from flushing integer inputs to otherwise flushable float-type
  operations
2019-11-22 14:59:18 +00:00