mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
anv: Advertise support VK_FORMAT_R8_SRGB
Unreal Engine 4 seems to really like this format for some reason. We don't technically have the hardware format but we do have L8_SRGB. It's easy enough to fake with that and a swizzle. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
a8ba57d356
commit
9ec51aa0fe
1 changed files with 2 additions and 1 deletions
|
|
@ -74,7 +74,8 @@ static const struct anv_format anv_formats[] = {
|
|||
fmt(VK_FORMAT_R8_SSCALED, ISL_FORMAT_R8_SSCALED),
|
||||
fmt(VK_FORMAT_R8_UINT, ISL_FORMAT_R8_UINT),
|
||||
fmt(VK_FORMAT_R8_SINT, ISL_FORMAT_R8_SINT),
|
||||
fmt(VK_FORMAT_R8_SRGB, ISL_FORMAT_UNSUPPORTED),
|
||||
swiz_fmt(VK_FORMAT_R8_SRGB, ISL_FORMAT_L8_UNORM_SRGB,
|
||||
_ISL_SWIZZLE(RED, ZERO, ZERO, ONE)),
|
||||
fmt(VK_FORMAT_R8G8_UNORM, ISL_FORMAT_R8G8_UNORM),
|
||||
fmt(VK_FORMAT_R8G8_SNORM, ISL_FORMAT_R8G8_SNORM),
|
||||
fmt(VK_FORMAT_R8G8_USCALED, ISL_FORMAT_R8G8_USCALED),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue