Commit 18abaf5a by Nicolas Capens Committed by Nicolas Capens

Fix format mapping for 10F_11F_11F and RGB9_E5.

GL_UNSIGNED_INT_10F_11F_11F_REV and GL_UNSIGNED_INT_5_9_9_9_REV were using sw::FORMAT_A32B32G32R32F as the implementation format, which resulted in using bad alpha values when it was rendered into. Change-Id: If29da49a9dc7f7a52d8846417da66f7af929f276 Reviewed-on: https://swiftshader-review.googlesource.com/15408Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent a141a075
...@@ -913,8 +913,8 @@ namespace egl ...@@ -913,8 +913,8 @@ namespace egl
return sw::FORMAT_A2B10G10R10; return sw::FORMAT_A2B10G10R10;
} }
case GL_UNSIGNED_INT_10F_11F_11F_REV: case GL_UNSIGNED_INT_10F_11F_11F_REV:
case GL_UNSIGNED_INT_5_9_9_9_REV: case GL_UNSIGNED_INT_5_9_9_9_REV: // 5 is the exponent field, not alpha.
return sw::FORMAT_A32B32G32R32F; return sw::FORMAT_X32B32G32R32F;
default: default:
UNREACHABLE(type); UNREACHABLE(type);
} }
......
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