Commit 82ae7cbc by Chris Forbes

Remove old isSRGBReadable/Writable queries

These are no longer used. Change-Id: I0fde85e2b200663eac2bb32c34f90e78d76ad287 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/30469Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent addcdccb
......@@ -142,39 +142,6 @@ bool Format::isSRGBformat() const
}
}
bool Format::isSRGBreadable() const
{
switch(format)
{
case VK_FORMAT_B8G8R8A8_UNORM:
case VK_FORMAT_B8G8R8A8_SRGB:
case VK_FORMAT_R8G8B8A8_UNORM:
case VK_FORMAT_R8G8B8A8_SRGB:
case VK_FORMAT_R5G6B5_UNORM_PACK16:
case VK_FORMAT_A1R5G5B5_UNORM_PACK16:
return true;
default:
return false;
}
}
bool Format::isSRGBwritable() const
{
switch(format)
{
case VK_FORMAT_UNDEFINED:
case VK_FORMAT_B8G8R8A8_UNORM:
case VK_FORMAT_B8G8R8A8_SRGB:
case VK_FORMAT_R8G8B8A8_UNORM:
case VK_FORMAT_R8G8B8A8_SRGB:
case VK_FORMAT_A8B8G8R8_SRGB_PACK32:
case VK_FORMAT_R5G6B5_UNORM_PACK16:
return true;
default:
return false;
}
}
bool Format::isFloatFormat() const
{
switch(format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment