mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 03:20:09 +01:00
radv: remove claimed support for sRGB vertex buffer formats
These probably don't work. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18225>
This commit is contained in:
parent
83f983ccda
commit
82f9e40851
1 changed files with 3 additions and 2 deletions
|
|
@ -747,9 +747,10 @@ radv_physical_device_get_format_properties(struct radv_physical_device *physical
|
|||
}
|
||||
|
||||
if (radv_is_buffer_format_supported(format, &scaled)) {
|
||||
if (format != VK_FORMAT_R64_UINT && format != VK_FORMAT_R64_SINT) {
|
||||
if (format != VK_FORMAT_R64_UINT && format != VK_FORMAT_R64_SINT &&
|
||||
!vk_format_is_srgb(format)) {
|
||||
buffer |= VK_FORMAT_FEATURE_2_VERTEX_BUFFER_BIT;
|
||||
if (!scaled && !vk_format_is_srgb(format))
|
||||
if (!scaled)
|
||||
buffer |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
|
||||
}
|
||||
buffer |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue