Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "GrVkCaps.h" |
| 9 | |
| 10 | #include "GrVkUtil.h" |
| 11 | #include "glsl/GrGLSLCaps.h" |
| 12 | #include "vk/GrVkInterface.h" |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 13 | #include "vk/GrVkBackendContext.h" |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 14 | |
| 15 | GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 16 | VkPhysicalDevice physDev, uint32_t featureFlags, uint32_t extensionFlags) |
| 17 | : INHERITED(contextOptions) { |
| 18 | fCanUseGLSLForShaderModule = false; |
egdaniel | 6fa0a91 | 2016-09-12 11:51:29 -0700 | [diff] [blame] | 19 | fMustDoCopiesFromOrigin = false; |
egdaniel | be9d821 | 2016-09-20 08:54:23 -0700 | [diff] [blame] | 20 | fAllowInitializationErrorOnTearDown = false; |
egdaniel | bc9b296 | 2016-09-27 08:00:53 -0700 | [diff] [blame] | 21 | fSupportsCopiesAsDraws = false; |
egdaniel | fd016d7 | 2016-09-27 12:13:05 -0700 | [diff] [blame] | 22 | fMustSubmitCommandsBeforeCopyOp = false; |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 23 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 24 | /************************************************************************** |
| 25 | * GrDrawTargetCaps fields |
| 26 | **************************************************************************/ |
jvanverth | 6234006 | 2016-04-26 08:01:44 -0700 | [diff] [blame] | 27 | fMipMapSupport = true; // always available in Vulkan |
brianosman | f05ab1b | 2016-05-12 11:01:10 -0700 | [diff] [blame] | 28 | fSRGBSupport = true; // always available in Vulkan |
brianosman | 8879186 | 2016-05-23 10:15:27 -0700 | [diff] [blame] | 29 | fNPOTTextureTileSupport = true; // always available in Vulkan |
jvanverth | c8ef053 | 2016-05-03 10:45:48 -0700 | [diff] [blame] | 30 | fTwoSidedStencilSupport = true; // always available in Vulkan |
egdaniel | 50134cc | 2016-05-23 12:34:38 -0700 | [diff] [blame] | 31 | fStencilWrapOpsSupport = true; // always available in Vulkan |
egdaniel | 37535c9 | 2016-06-30 08:23:30 -0700 | [diff] [blame] | 32 | fDiscardRenderTargetSupport = true; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 33 | fReuseScratchTextures = true; //TODO: figure this out |
| 34 | fGpuTracingSupport = false; //TODO: figure this out |
| 35 | fCompressedTexSubImageSupport = false; //TODO: figure this out |
| 36 | fOversizedStencilSupport = false; //TODO: figure this out |
| 37 | |
egdaniel | 9cb6340 | 2016-06-23 08:37:05 -0700 | [diff] [blame] | 38 | fUseDrawInsteadOfClear = false; |
jvanverth | 84741b3 | 2016-09-30 08:39:02 -0700 | [diff] [blame^] | 39 | fFenceSyncSupport = true; // always available in Vulkan |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 40 | |
| 41 | fMapBufferFlags = kNone_MapFlags; //TODO: figure this out |
cdalton | 397536c | 2016-03-25 12:15:03 -0700 | [diff] [blame] | 42 | fBufferMapThreshold = SK_MaxS32; //TODO: figure this out |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 43 | |
| 44 | fMaxRenderTargetSize = 4096; // minimum required by spec |
| 45 | fMaxTextureSize = 4096; // minimum required by spec |
| 46 | fMaxColorSampleCount = 4; // minimum required by spec |
| 47 | fMaxStencilSampleCount = 4; // minimum required by spec |
| 48 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 49 | fShaderCaps.reset(new GrGLSLCaps(contextOptions)); |
| 50 | |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 51 | this->init(contextOptions, vkInterface, physDev, featureFlags, extensionFlags); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 55 | VkPhysicalDevice physDev, uint32_t featureFlags, uint32_t extensionFlags) { |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 56 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 57 | VkPhysicalDeviceProperties properties; |
| 58 | GR_VK_CALL(vkInterface, GetPhysicalDeviceProperties(physDev, &properties)); |
| 59 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 60 | VkPhysicalDeviceMemoryProperties memoryProperties; |
| 61 | GR_VK_CALL(vkInterface, GetPhysicalDeviceMemoryProperties(physDev, &memoryProperties)); |
| 62 | |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 63 | this->initGrCaps(properties, memoryProperties, featureFlags); |
| 64 | this->initGLSLCaps(properties, featureFlags); |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 65 | this->initConfigTable(vkInterface, physDev); |
| 66 | this->initStencilFormat(vkInterface, physDev); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 67 | |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 68 | if (SkToBool(extensionFlags & kNV_glsl_shader_GrVkExtensionFlag)) { |
egdaniel | d632bb4 | 2016-03-30 12:06:48 -0700 | [diff] [blame] | 69 | // Currently disabling this feature since it does not play well with validation layers which |
| 70 | // expect a SPIR-V shader |
| 71 | // fCanUseGLSLForShaderModule = true; |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 72 | } |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 73 | |
egdaniel | 6fa0a91 | 2016-09-12 11:51:29 -0700 | [diff] [blame] | 74 | if (kQualcomm_VkVendor == properties.vendorID) { |
| 75 | fMustDoCopiesFromOrigin = true; |
egdaniel | be9d821 | 2016-09-20 08:54:23 -0700 | [diff] [blame] | 76 | fAllowInitializationErrorOnTearDown = true; |
egdaniel | 6fa0a91 | 2016-09-12 11:51:29 -0700 | [diff] [blame] | 77 | } |
| 78 | |
egdaniel | fd016d7 | 2016-09-27 12:13:05 -0700 | [diff] [blame] | 79 | if (kNvidia_VkVendor == properties.vendorID) { |
| 80 | fSupportsCopiesAsDraws = true; |
| 81 | fMustSubmitCommandsBeforeCopyOp = true; |
| 82 | } |
| 83 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 84 | this->applyOptionsOverrides(contextOptions); |
egdaniel | c5ec140 | 2016-03-28 12:14:42 -0700 | [diff] [blame] | 85 | GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); |
| 86 | glslCaps->applyOptionsOverrides(contextOptions); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | int get_max_sample_count(VkSampleCountFlags flags) { |
| 90 | SkASSERT(flags & VK_SAMPLE_COUNT_1_BIT); |
| 91 | if (!(flags & VK_SAMPLE_COUNT_2_BIT)) { |
| 92 | return 0; |
| 93 | } |
| 94 | if (!(flags & VK_SAMPLE_COUNT_4_BIT)) { |
| 95 | return 2; |
| 96 | } |
| 97 | if (!(flags & VK_SAMPLE_COUNT_8_BIT)) { |
| 98 | return 4; |
| 99 | } |
| 100 | if (!(flags & VK_SAMPLE_COUNT_16_BIT)) { |
| 101 | return 8; |
| 102 | } |
| 103 | if (!(flags & VK_SAMPLE_COUNT_32_BIT)) { |
| 104 | return 16; |
| 105 | } |
| 106 | if (!(flags & VK_SAMPLE_COUNT_64_BIT)) { |
| 107 | return 32; |
| 108 | } |
| 109 | return 64; |
| 110 | } |
| 111 | |
| 112 | void GrVkCaps::initSampleCount(const VkPhysicalDeviceProperties& properties) { |
| 113 | VkSampleCountFlags colorSamples = properties.limits.framebufferColorSampleCounts; |
| 114 | VkSampleCountFlags stencilSamples = properties.limits.framebufferStencilSampleCounts; |
| 115 | |
| 116 | fMaxColorSampleCount = get_max_sample_count(colorSamples); |
| 117 | fMaxStencilSampleCount = get_max_sample_count(stencilSamples); |
| 118 | } |
| 119 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 120 | void GrVkCaps::initGrCaps(const VkPhysicalDeviceProperties& properties, |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 121 | const VkPhysicalDeviceMemoryProperties& memoryProperties, |
| 122 | uint32_t featureFlags) { |
jvanverth | e78d487 | 2016-09-27 03:33:05 -0700 | [diff] [blame] | 123 | fMaxVertexAttributes = SkTMin(properties.limits.maxVertexInputAttributes, (uint32_t)INT_MAX); |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 124 | // We could actually query and get a max size for each config, however maxImageDimension2D will |
| 125 | // give the minimum max size across all configs. So for simplicity we will use that for now. |
jvanverth | e78d487 | 2016-09-27 03:33:05 -0700 | [diff] [blame] | 126 | fMaxRenderTargetSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); |
| 127 | fMaxTextureSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 128 | |
| 129 | this->initSampleCount(properties); |
| 130 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 131 | // Assuming since we will always map in the end to upload the data we might as well just map |
| 132 | // from the get go. There is no hard data to suggest this is faster or slower. |
cdalton | 397536c | 2016-03-25 12:15:03 -0700 | [diff] [blame] | 133 | fBufferMapThreshold = 0; |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 134 | |
| 135 | fMapBufferFlags = kCanMap_MapFlag | kSubset_MapFlag; |
| 136 | |
| 137 | fStencilWrapOpsSupport = true; |
| 138 | fOversizedStencilSupport = true; |
ethannicholas | 28ef445 | 2016-03-25 09:26:03 -0700 | [diff] [blame] | 139 | fSampleShadingSupport = SkToBool(featureFlags & kSampleRateShading_GrVkFeatureFlag); |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 140 | } |
| 141 | |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 142 | void GrVkCaps::initGLSLCaps(const VkPhysicalDeviceProperties& properties, |
| 143 | uint32_t featureFlags) { |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 144 | GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); |
egdaniel | 3a15fd4 | 2016-04-05 11:00:29 -0700 | [diff] [blame] | 145 | glslCaps->fVersionDeclString = "#version 330\n"; |
| 146 | |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 147 | |
| 148 | // fConfigOutputSwizzle will default to RGBA so we only need to set it for alpha only config. |
| 149 | for (int i = 0; i < kGrPixelConfigCnt; ++i) { |
| 150 | GrPixelConfig config = static_cast<GrPixelConfig>(i); |
| 151 | if (GrPixelConfigIsAlphaOnly(config)) { |
| 152 | glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); |
| 153 | glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); |
| 154 | } else { |
egdaniel | 3fe0327 | 2016-08-15 10:59:17 -0700 | [diff] [blame] | 155 | if (kRGBA_4444_GrPixelConfig == config) { |
| 156 | // The vulkan spec does not require R4G4B4A4 to be supported for texturing so we |
| 157 | // store the data in a B4G4R4A4 texture and then swizzle it when doing texture reads |
| 158 | // or writing to outputs. Since we're not actually changing the data at all, the |
| 159 | // only extra work is the swizzle in the shader for all operations. |
| 160 | glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::BGRA(); |
| 161 | glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::BGRA(); |
| 162 | } else { |
| 163 | glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA(); |
| 164 | } |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 165 | } |
| 166 | } |
egdaniel | 67acb83 | 2016-02-26 08:32:20 -0800 | [diff] [blame] | 167 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 168 | // Vulkan is based off ES 3.0 so the following should all be supported |
| 169 | glslCaps->fUsesPrecisionModifiers = true; |
| 170 | glslCaps->fFlatInterpolationSupport = true; |
| 171 | |
| 172 | // GrShaderCaps |
| 173 | |
egdaniel | 67acb83 | 2016-02-26 08:32:20 -0800 | [diff] [blame] | 174 | glslCaps->fShaderDerivativeSupport = true; |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 175 | glslCaps->fGeometryShaderSupport = SkToBool(featureFlags & kGeometryShader_GrVkFeatureFlag); |
egdaniel | d632bb4 | 2016-03-30 12:06:48 -0700 | [diff] [blame] | 176 | |
jvanverth | fd7bd45 | 2016-03-25 06:29:52 -0700 | [diff] [blame] | 177 | glslCaps->fDualSourceBlendingSupport = SkToBool(featureFlags & kDualSrcBlend_GrVkFeatureFlag); |
egdaniel | d632bb4 | 2016-03-30 12:06:48 -0700 | [diff] [blame] | 178 | |
egdaniel | d5e3b9e | 2016-03-08 12:19:54 -0800 | [diff] [blame] | 179 | glslCaps->fIntegerSupport = true; |
cdalton | 9c3f143 | 2016-03-11 10:07:37 -0800 | [diff] [blame] | 180 | |
cdalton | a6b92ad | 2016-04-11 12:03:08 -0700 | [diff] [blame] | 181 | // Assume the minimum precisions mandated by the SPIR-V spec. |
| 182 | glslCaps->fShaderPrecisionVaries = true; |
| 183 | for (int s = 0; s < kGrShaderTypeCount; ++s) { |
| 184 | auto& highp = glslCaps->fFloatPrecisions[s][kHigh_GrSLPrecision]; |
| 185 | highp.fLogRangeLow = highp.fLogRangeHigh = 127; |
| 186 | highp.fBits = 23; |
| 187 | |
| 188 | auto& mediump = glslCaps->fFloatPrecisions[s][kMedium_GrSLPrecision]; |
| 189 | mediump.fLogRangeLow = mediump.fLogRangeHigh = 14; |
| 190 | mediump.fBits = 10; |
| 191 | |
| 192 | glslCaps->fFloatPrecisions[s][kLow_GrSLPrecision] = mediump; |
| 193 | } |
| 194 | glslCaps->initSamplerPrecisionTable(); |
| 195 | |
cdalton | 9c3f143 | 2016-03-11 10:07:37 -0800 | [diff] [blame] | 196 | glslCaps->fMaxVertexSamplers = |
| 197 | glslCaps->fMaxGeometrySamplers = |
jvanverth | e78d487 | 2016-09-27 03:33:05 -0700 | [diff] [blame] | 198 | glslCaps->fMaxFragmentSamplers = SkTMin(SkTMin(properties.limits.maxPerStageDescriptorSampledImages, |
| 199 | properties.limits.maxPerStageDescriptorSamplers), |
| 200 | (uint32_t)INT_MAX); |
| 201 | glslCaps->fMaxCombinedSamplers = SkTMin(SkTMin(properties.limits.maxDescriptorSetSampledImages, |
| 202 | properties.limits.maxDescriptorSetSamplers), |
| 203 | (uint32_t)INT_MAX); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 204 | } |
| 205 | |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 206 | bool stencil_format_supported(const GrVkInterface* interface, |
| 207 | VkPhysicalDevice physDev, |
| 208 | VkFormat format) { |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 209 | VkFormatProperties props; |
| 210 | memset(&props, 0, sizeof(VkFormatProperties)); |
| 211 | GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &props)); |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 212 | return SkToBool(VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT & props.optimalTilingFeatures); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 213 | } |
| 214 | |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 215 | void GrVkCaps::initStencilFormat(const GrVkInterface* interface, VkPhysicalDevice physDev) { |
| 216 | // List of legal stencil formats (though perhaps not supported on |
| 217 | // the particular gpu/driver) from most preferred to least. We are guaranteed to have either |
jvanverth | a4b0fed | 2016-04-27 11:42:21 -0700 | [diff] [blame] | 218 | // VK_FORMAT_D24_UNORM_S8_UINT or VK_FORMAT_D32_SFLOAT_S8_UINT. VK_FORMAT_D32_SFLOAT_S8_UINT |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 219 | // can optionally have 24 unused bits at the end so we assume the total bits is 64. |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 220 | static const StencilFormat |
| 221 | // internal Format stencil bits total bits packed? |
| 222 | gS8 = { VK_FORMAT_S8_UINT, 8, 8, false }, |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 223 | gD24S8 = { VK_FORMAT_D24_UNORM_S8_UINT, 8, 32, true }, |
| 224 | gD32S8 = { VK_FORMAT_D32_SFLOAT_S8_UINT, 8, 64, true }; |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 225 | |
egdaniel | 8f1dcaa | 2016-04-01 10:10:45 -0700 | [diff] [blame] | 226 | if (stencil_format_supported(interface, physDev, VK_FORMAT_S8_UINT)) { |
| 227 | fPreferedStencilFormat = gS8; |
| 228 | } else if (stencil_format_supported(interface, physDev, VK_FORMAT_D24_UNORM_S8_UINT)) { |
| 229 | fPreferedStencilFormat = gD24S8; |
| 230 | } else { |
| 231 | SkASSERT(stencil_format_supported(interface, physDev, VK_FORMAT_D32_SFLOAT_S8_UINT)); |
| 232 | fPreferedStencilFormat = gD32S8; |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | void GrVkCaps::initConfigTable(const GrVkInterface* interface, VkPhysicalDevice physDev) { |
| 237 | for (int i = 0; i < kGrPixelConfigCnt; ++i) { |
| 238 | VkFormat format; |
| 239 | if (GrPixelConfigToVkFormat(static_cast<GrPixelConfig>(i), &format)) { |
| 240 | fConfigTable[i].init(interface, physDev, format); |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | void GrVkCaps::ConfigInfo::InitConfigFlags(VkFormatFeatureFlags vkFlags, uint16_t* flags) { |
| 246 | if (SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & vkFlags) && |
| 247 | SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT & vkFlags)) { |
| 248 | *flags = *flags | kTextureable_Flag; |
| 249 | } |
| 250 | |
| 251 | if (SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT & vkFlags)) { |
| 252 | *flags = *flags | kRenderable_Flag; |
| 253 | } |
| 254 | |
| 255 | if (SkToBool(VK_FORMAT_FEATURE_BLIT_SRC_BIT & vkFlags)) { |
| 256 | *flags = *flags | kBlitSrc_Flag; |
| 257 | } |
| 258 | |
| 259 | if (SkToBool(VK_FORMAT_FEATURE_BLIT_DST_BIT & vkFlags)) { |
| 260 | *flags = *flags | kBlitDst_Flag; |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface, |
| 265 | VkPhysicalDevice physDev, |
| 266 | VkFormat format) { |
| 267 | VkFormatProperties props; |
| 268 | memset(&props, 0, sizeof(VkFormatProperties)); |
| 269 | GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &props)); |
| 270 | InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); |
| 271 | InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); |
Greg Daniel | 164a9f0 | 2016-02-22 09:56:40 -0500 | [diff] [blame] | 272 | } |