Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
697ce236
Commit
697ce236
authored
Jan 07, 2019
by
Laszlo Agocs
Browse files
vk: Fix data stride in timestamp query
parent
fff46e9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rhi/qrhivulkan.cpp
View file @
697ce236
...
...
@@ -1417,7 +1417,7 @@ QRhi::FrameOpResult QRhiVulkan::beginNonWrapperFrame(QRhiSwapChain *swapChain)
if
(
frame
.
timestampQueryIndex
>=
0
)
{
quint64
timestamp
[
2
]
=
{
0
,
0
};
VkResult
err
=
df
->
vkGetQueryPoolResults
(
dev
,
timestampQueryPool
,
frame
.
timestampQueryIndex
,
2
,
2
*
sizeof
(
quint64
),
&
timestamp
,
0
,
VK_QUERY_RESULT_64_BIT
);
2
*
sizeof
(
quint64
),
timestamp
,
sizeof
(
quint64
)
,
VK_QUERY_RESULT_64_BIT
);
timestampQueryPoolMap
.
clearBit
(
frame
.
timestampQueryIndex
/
2
);
frame
.
timestampQueryIndex
=
-
1
;
if
(
err
==
VK_SUCCESS
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment