Commit eb026f1c by Nicolas Capens Committed by Nicolas Capens

Fix support for NPOT 3D and 2D array textures.

The slices of 3D and 2D array textures are not at pitch * height offset apart when the height is odd, due to allocating 2x2 quads for render targets. Explicitly use the slice size instead. Change-Id: Id35f35f21a5b2b199215e2526239bcd459141e2c Reviewed-on: https://swiftshader-review.googlesource.com/14348Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent d19db3dc
......@@ -157,6 +157,11 @@ public:
return getExternalPitchB();
}
unsigned int getSlice() const
{
return getExternalSliceB();
}
virtual void unlock()
{
unlockExternal();
......
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