Disable support for sample locations in vulkan.
Bug: skia:10346 Change-Id: Ie741fcf84a8c71d663f240d49c35fdbc5cb812e1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/295088 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
parent
d3927e40f1
commit
8a6e53ad22
@ -516,9 +516,12 @@ void GrVkCaps::initGrCaps(const GrVkInterface* vkInterface,
|
||||
static const uint32_t kMaxVertexAttributes = 64;
|
||||
fMaxVertexAttributes = std::min(properties.limits.maxVertexInputAttributes, kMaxVertexAttributes);
|
||||
|
||||
// See skbug.com/10346
|
||||
#if 0
|
||||
if (properties.limits.standardSampleLocations) {
|
||||
fSampleLocationsSupport = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (extensions.hasExtension(VK_EXT_SAMPLE_LOCATIONS_EXTENSION_NAME, 1)) {
|
||||
// We "disable" multisample by colocating all samples at pixel center.
|
||||
|
@ -110,6 +110,11 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugReportCallback(
|
||||
const char* pMessage,
|
||||
void* pUserData) {
|
||||
if (flags & VK_DEBUG_REPORT_ERROR_BIT_EXT) {
|
||||
// See https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/1887
|
||||
if (strstr(pMessage, "VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-01521") ||
|
||||
strstr(pMessage, "VUID-VkGraphicsPipelineCreateInfo-pDynamicStates-01522")) {
|
||||
return VK_FALSE;
|
||||
}
|
||||
SkDebugf("Vulkan error [%s]: code: %d: %s\n", pLayerPrefix, messageCode, pMessage);
|
||||
print_backtrace();
|
||||
SkDEBUGFAIL("Vulkan debug layer error");
|
||||
|
Loading…
Reference in New Issue
Block a user