[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 <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
Jim Van Verth 2022-03-09 10:32:24 -05:00 committed by SkCQ
parent 35553cd3a7
commit 0284676042

View File

@ -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,