From 02846760428c64af82464c93d5bdf480f0d27b31 Mon Sep 17 00:00:00 2001 From: Jim Van Verth Date: Wed, 9 Mar 2022 10:32:24 -0500 Subject: [PATCH] [graphite] Fix uniform buffer alignment for MacOS in CommandBufferTest 4 byte alignment was being used, when it should be 256 on Intel Macs. Bug: skia:13033 Change-Id: If902885f62e019b10c316dcfd7f4a336e0982db7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/518522 Reviewed-by: Robert Phillips Commit-Queue: Jim Van Verth Reviewed-by: John Stiles --- tests/graphite/CommandBufferTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/graphite/CommandBufferTest.cpp b/tests/graphite/CommandBufferTest.cpp index deceaeaf69..2503b79213 100644 --- a/tests/graphite/CommandBufferTest.cpp +++ b/tests/graphite/CommandBufferTest.cpp @@ -275,7 +275,7 @@ DEF_GRAPHITE_TEST_FOR_CONTEXTS(CommandBufferTest, reporter, context) { renderPassDesc.fClearColor = { 1, 0, 0, 1 }; // red target->instantiate(resourceProvider); - DrawBufferManager bufferMgr(resourceProvider, 4); + DrawBufferManager bufferMgr(resourceProvider, gpu->caps()->requiredUniformBufferAlignment()); TextureInfo depthStencilInfo = gpu->caps()->getDefaultDepthStencilTextureInfo(DepthStencilFlags::kDepthStencil,