qt6-bb10/tests/auto
Laszlo Agocs 0dbed05bbc rhi: vulkan: Reset state more aggressively
...when starting a render/compute pass.

This matches most other backends in fact, the Vulkan backend has
just certain historical differences, and is complicated due to the
fact that it has the option of using secondary command buffers for
passes that specify ExternalContents (to support the case of wanting
to issue direct Vulkan commands in a code block surrounded by calls
to beginExternal and endExternal).

Not resetting state such as the currently bound index buffer when
starting a pass quickly blows up when two consecutive render passes
use different settings, one targeting the primary while the other
the secondary command buffer. Instead of further complicating the
logic, just reset the relevant state in every begin(Compute)Pass.

Comes with an autotest that is crafted so that it manages to
downright crash when run with Vulkan without the fix to the backend.

Fixes: QTBUG-89765
Pick-to: 6.2
Change-Id: I8dc47bd179c17d45a0556ec31200dc90c4b67ca5
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2021-09-17 16:48:44 +02:00
..
bic/data Add binary compatibility files for 6.1 2021-09-03 13:41:25 +00:00
cmake Implement generating of private cpp exports 2021-08-27 11:01:47 +02:00
concurrent Fix QtConcurrent::blockingMapped to work with non-template sequences 2021-09-08 15:05:32 +02:00
corelib Add missing dependencies of tests on their helper programs 2021-09-17 12:57:25 +02:00
dbus tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
gui rhi: vulkan: Reset state more aggressively 2021-09-17 16:48:44 +02:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network Fix flaky test timing out sometimes while waiting for data 2021-09-17 16:48:44 +02:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Improve lancelot test of dashed line painting 2021-08-20 13:50:24 +02:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
testlib Add missing dependencies of tests on their helper programs 2021-09-17 12:57:25 +02:00
tools Support QNX QCC compiler 2021-09-16 20:54:17 +03:00
widgets Close QDialog via QWidget::close() 2021-09-16 14:24:00 +02:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Build a subset of tests when targeting iOS in the CI 2021-08-26 16:40:15 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00