Do not use degenerate frames in EGL tests
authorMichael Chock <mchock@nvidia.com>
Mon, 14 Aug 2017 18:55:14 +0000 (11:55 -0700)
committerMika Isojärvi <misojarvi@google.com>
Sat, 2 Sep 2017 22:08:15 +0000 (15:08 -0700)
commita84ddd715f439dda24091cb0c7cb086b0ebb0a11
treeaa0aaecbd5a058aedfc681331e06853acd22eb3f
parent29f89eed9b93befd1b11b00817c839e60ad57c9a
Do not use degenerate frames in EGL tests

The dEQP-EGL.functional.buffer_age.* and
dEQP-EGL.functional.partial_update.* tests use randomly-generated frames
for rendering. The test allows the generation of frames with a width or
height of 0, but the tcu::PixelBufferAccess interface does not permit
0-sized subregions (see assertions inside getSubregion overloads in
tcuTextureUtil.cpp).

Skip the rendering of degenerate frames in the reference renderer, as
they are unsupported but would not affect the rendering if they were.

Bug: 65317274
Test: Ran tests on couple of Google devices
Change-Id: I3977c3c293715db633dde74132e56b5d9303ab28
modules/egl/teglBufferAgeTests.cpp
modules/egl/teglPartialUpdateTests.cpp