mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 22:13:25 -10:00
The PVRTC format, as pointed out by Le Hoang Quyen and Geoff Lang, uses 4x4 or 8x4 blocks, but due to sampling from adjacent blocks, requires a minimum size of 2x2 blocks per the OpenGL extension: https://www.khronos.org/registry/OpenGL/extensions/IMG/IMG_texture_compression_pvrtc.txt . Thanks to Quyen and Geoff for pointing out the intricacies. Add a helper function to formatutils.cpp which returns the minimum number of blocks (width and height) for a given compressed texture format, and incorporate this into the compressed texture size computation. This patch makes WebKit on ANGLE pass WebGL's PVRTC compressed texture test on iOS hardware. Bug: angleproject:4652 No-Presubmit: True Change-Id: I1046a091321b7948d712d16686ee0cb8795b8c99 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2213676 Commit-Queue: Kenneth Russell <[email protected]> Reviewed-by: Geoff Lang <[email protected]>
14 lines
535 B
JSON
14 lines
535 B
JSON
{
|
|
"src/libANGLE/renderer/FormatID_autogen.h":
|
|
"bbdb3beae2da4629e3583d6d014ebb2d",
|
|
"src/libANGLE/renderer/Format_table_autogen.cpp":
|
|
"29000a1abc79c129662637f76e7d2a03",
|
|
"src/libANGLE/renderer/angle_format.py":
|
|
"32ba71942c0fd00e6807104f1bb80a3c",
|
|
"src/libANGLE/renderer/angle_format_data.json":
|
|
"e5cc162abe241ea9ba270309c8ec1330",
|
|
"src/libANGLE/renderer/angle_format_map.json":
|
|
"c79d833aea7007c7d0d51cdaa9b265a6",
|
|
"src/libANGLE/renderer/gen_angle_format_table.py":
|
|
"8e349a643e81a028ebb54bde3756f9f7"
|
|
} |