Make TransferPixelsTest skip unsupported configs

No-Tree-Checks: true
No-Try: true
No-Presubmit: true
Change-Id: Ibbd59776efccce0c63e7d650ddf96f9c23e5745d
Reviewed-on: https://skia-review.googlesource.com/115070
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp
index 8f71528..1c0b1b8 100755
--- a/tests/TransferPixelsTest.cpp
+++ b/tests/TransferPixelsTest.cpp
@@ -71,6 +71,13 @@
     auto resourceProvider = context->contextPriv().resourceProvider();
     GrGpu* gpu = context->contextPriv().getGpu();
 
+    if (!gpu->caps()->isConfigTexturable(config)) {
+        return;
+    }
+    if (renderTarget && !gpu->caps()->isConfigRenderable(config, false)) {
+        return;
+    }
+
     // set up the data
     const int kTextureWidth = 16;
     const int kTextureHeight = 16;