Commit 26b41169 by Nicolas Capens

Fix external surface pitch/slice retrieval.

Change-Id: I21ec9c20a594fd322d17f2bcd1c58b298d4c0ce9 Reviewed-on: https://swiftshader-review.googlesource.com/8812Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent ab5339f7
......@@ -514,7 +514,7 @@ namespace sw
int Surface::getPitchP(bool internal) const
{
return internal ? getInternalPitchP() : getExternalPitchB();
return internal ? getInternalPitchP() : getExternalPitchP();
}
int Surface::getSliceB(bool internal) const
......@@ -524,7 +524,7 @@ namespace sw
int Surface::getSliceP(bool internal) const
{
return internal ? getInternalSliceP() : getExternalSliceB();
return internal ? getInternalSliceP() : getExternalSliceP();
}
Format Surface::getExternalFormat() const
......
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