History

hwcontext_vulkan: enable read/write without storage

BGR formats in Vulkan cannot be used in storage images, as the pixel labels on storage images are always ordered as RGB, and swizzling is not an option due to old hardware limitations. This means that you must always use an RGB format and manually swizzle when reading or writing to BGR images, or simply not use a format in the shader itself. This adds support for the latter.

Lynne committed 1 year ago

Commit 85d81dc1 parent 651bfd01 file · +2 −0Browse files

Unified · Split

libavutil/hwcontext_vulkan.c+2−0
@@ -244,6 +244,8 @@ static void device_features_copy_needed(VulkanDeviceFeatures *dst, VulkanDeviceF · 243 unmodified lines
244 COPY_VAL(device.features.shaderInt64);244 COPY_VAL(device.features.shaderInt64);
245 COPY_VAL(device.features.shaderInt16);245 COPY_VAL(device.features.shaderInt16);
246 COPY_VAL(device.features.shaderFloat64);246 COPY_VAL(device.features.shaderFloat64);
247 COPY_VAL(device.features.shaderStorageImageReadWithoutFormat);
248 COPY_VAL(device.features.shaderStorageImageWriteWithoutFormat);
247 249
248 COPY_VAL(vulkan_1_1.samplerYcbcrConversion);250 COPY_VAL(vulkan_1_1.samplerYcbcrConversion);
249 COPY_VAL(vulkan_1_1.storagePushConstant16);251 COPY_VAL(vulkan_1_1.storagePushConstant16);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t