Remove Windows Intel blacklisting of cross context texture
authorBrian Osman <brianosman@google.com>
Tue, 16 May 2017 17:30:11 +0000 (13:30 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 16 May 2017 21:10:13 +0000 (21:10 +0000)
The new version of this feature creates and destroys textures
on the same context, so shouldn't encounter the bug.

Bug: skia:
Change-Id: I5ace8fd066b0198e075a53742875554637fde553
Reviewed-on: https://skia-review.googlesource.com/17101
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>

src/gpu/gl/GrGLCaps.cpp

index 232c013..49274d7 100644 (file)
@@ -548,14 +548,8 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
         fFenceSyncSupport = true;
     }
 
-    // Safely moving textures between contexts requires fences. The Windows Intel driver has a
-    // bug with deleting and reusing texture IDs across contexts, so disallow this feature.
+    // Safely moving textures between contexts requires fences.
     fCrossContextTextureSupport = fFenceSyncSupport;
-#ifdef SK_BUILD_FOR_WIN
-    if (kIntel_GrGLVendor == ctxInfo.vendor()) {
-        fCrossContextTextureSupport = false;
-    }
-#endif
 
     // We support manual mip-map generation (via iterative downsampling draw calls). This fixes
     // bugs on some cards/drivers that produce incorrect mip-maps for sRGB textures when using