Disable vertex ID support on SwiftShader

Once this is fixed we can hopefully check the version number before
disabling.

Bug: skia:11965
Bug: b/188239650
Change-Id: Idc29058e23c6e1750555165ba57b695a7cc0f925
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/409338
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2021-05-17 10:43:57 -06:00 committed by Skia Commit-Bot
parent 5108c6848f
commit 5bd3a5c351
2 changed files with 10 additions and 0 deletions

View File

@ -4105,6 +4105,11 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
ctxInfo.renderer() == GrGLRenderer::kAdreno640) {
fAvoidReorderingRenderTasks = true;
}
// http://skbug.com/11965
if (ctxInfo.renderer() == GrGLRenderer::kGoogleSwiftShader) {
fShaderCaps->fVertexIDSupport = false;
}
}
void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {

View File

@ -589,6 +589,11 @@ void GrVkCaps::applyDriverCorrectnessWorkarounds(const VkPhysicalDevicePropertie
if (kImagination_VkVendor == properties.vendorID) {
fShaderCaps->fAtan2ImplementedAsAtanYOverX = true;
}
// http://skbug.com/11965
if (strstr(properties.deviceName, "SwiftShader")) {
fShaderCaps->fVertexIDSupport = false;
}
}
void GrVkCaps::initGrCaps(const GrVkInterface* vkInterface,