Descriptiongpu, cmaa: handle only staircase case for 2 edge case
Two edge case is a bit complicated. We want to handle only staircase
case. The staircase case consists of small staircase and Z shape.
Define "small staircase" as at least 2 texels form Z shape.
Standard form Variants
__ |__ __ __ |__
X| X| | X | X|
¯¯ ¯¯ ¯¯ ¯¯| ¯¯|
Define "Z shape" as at least 4 texels form Z shape.
__ __
X|
¯¯ ¯¯
Anything else will be skipped.
e.g.
Parallel |X|
Isolated L shape
_ _
X| X| |X |X
¯¯ ¯¯
Large L shape
_ _ | | _ _
X| X| |X |X
| ¯¯¯¯ ¯¯¯¯ |
etc..
This CL fixes 2 WebGL conformance tests, which fail due to isolated L shape.
https://www.khronos.org/registry/webgl/sdk/tests/conformance/context/context-size-change.html
https://www.khronos.org/registry/webgl/sdk/tests/conformance/textures/misc/copy-tex-image-and-sub-image-2d.html
Yang Gu checked all WebGL conformance tests are passed with CMAA.
BUG=535198
TEST=Run a WebGL app with Chrome started with "--enable-cmaa-shaders"
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel
Patch Set 1 #
Messages
Total messages: 2 (2 generated)
|