Commit f25aebd1 authored by David McAllister's avatar David McAllister Committed by Commit Bot

Skip RGBA_F16 Lifecycle test for devices which do not support it

BUG=None
TEST=GpuMemoryBufferTest on Pixel, Nexus

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: If63280993d620c8db00ed1f7eaccda8b1dee83a5
Reviewed-on: https://chromium-review.googlesource.com/871973Reviewed-by: default avatarDavid Reveman <reveman@chromium.org>
Commit-Queue: David Reveman <reveman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532289}
parent 2974c645
...@@ -199,6 +199,12 @@ TEST_P(GpuMemoryBufferTest, Lifecycle) { ...@@ -199,6 +199,12 @@ TEST_P(GpuMemoryBufferTest, Lifecycle) {
return; return;
} }
if (GetParam() == gfx::BufferFormat::RGBA_F16 &&
!gl_.GetCapabilities().texture_half_float_linear) {
LOG(WARNING) << "texture_half_float_linear not supported. Skipping test.";
return;
}
GLuint texture_id = 0; GLuint texture_id = 0;
glGenTextures(1, &texture_id); glGenTextures(1, &texture_id);
ASSERT_NE(0u, texture_id); ASSERT_NE(0u, texture_id);
......
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