diff options
| author | Peter Varga <pvarga@inf.u-szeged.hu> | 2025-03-25 14:53:38 +0100 |
|---|---|---|
| committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2025-04-09 20:09:55 +0200 |
| commit | f88fa0c83c7f0c063475539b327065f8615fe9d7 (patch) | |
| tree | f71347c07573e126f1292eaff77812308df702eb /src/core/api/qwebenginefilesystemaccessrequest.cpp | |
| parent | 23cb28fa0c21c3205b398eb177dffada62de6cc9 (diff) | |
NativeSkiaOutputDeviceVulkan: Use minimal set of usage flags for VkImage
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT usage flag is not necessary because
the native VkImage imported into QSG seems to be only accessed via
sampling. VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT also seems to conflict
with the VK_IMAGE_LAYOUT_UNDEFINED initial layout with Nvidia driver.
VK_IMAGE_LAYOUT_UNDEFINED is a requirement for importing external
texture from Chromium.
Keep VK_IMAGE_USAGE_SAMPLE_BIT usage flag because it is a requirement
for sampling.
Remove the corressponding VK_IMAGE_LAYOUT_PRINITIALIZED initial layout
workaround for Nvidia. It is not necessary without the
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT flag and fixes validation layer
warning.
Also remove VK_IMAGE_USAGE_TRANSFER_DST_BIT and
VK_IMAGE_TRANSFER_SRC_BIT usage flags because those are not used and
seem to be leftover from an earlier implementation.
Pick-to: 6.8 6.9
Task-number: QTBUG-123607
Change-Id: If9dba4b6ff9d584e3d103ec8d05b7fe0cdaec339
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/api/qwebenginefilesystemaccessrequest.cpp')
0 files changed, 0 insertions, 0 deletions
