Enable tri-linear and NPOT-tiling support in Vulkan

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2004123002

Review-Url: https://codereview.chromium.org/2004123002
This commit is contained in:
brianosman 2016-05-23 10:15:27 -07:00 committed by Commit bot
parent a56800a05d
commit 8879186d89
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface*
**************************************************************************/
fMipMapSupport = true; // always available in Vulkan
fSRGBSupport = true; // always available in Vulkan
fNPOTTextureTileSupport = false; //TODO: figure this out
fNPOTTextureTileSupport = true; // always available in Vulkan
fTwoSidedStencilSupport = true; // always available in Vulkan
fStencilWrapOpsSupport = false; //TODO: figure this out
fDiscardRenderTargetSupport = false; //TODO: figure this out

View File

@ -44,7 +44,7 @@ GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrTextureParams& para
createInfo.flags = 0;
createInfo.magFilter = vkMagFilterModes[params.filterMode()];
createInfo.minFilter = vkMinFilterModes[params.filterMode()];
createInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_NEAREST;
createInfo.mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR;
createInfo.addressModeU = tile_to_vk_sampler_address(params.getTileModeX());
createInfo.addressModeV = tile_to_vk_sampler_address(params.getTileModeY());
createInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE; // Shouldn't matter