Commit 74faebba by Nicolas Capens Committed by Nicolas Capens

Swap format/type in image upload.

This refactoring makes the code for texture image upload significantly smaller. It also aligns better with the layout of table 3.2 in the OpenGL ES 3.0 specification which lists valid format/type combinations. Custom RGB565 format handling was removed because it corresponds with a regular 2-byte per pixel memcpy. Sized internal formats were removed because a recent change fixed not using the internalformat parameter as upload format. Change-Id: Ief6c6e60c3d9a734cac241022bc95ffc88d752c8 Reviewed-on: https://swiftshader-review.googlesource.com/16568Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 2fc9051e
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