/external/skia/src/gpu/vk/ |
D | GrVkSamplerYcbcrConversion.cpp | 91 const GrVkYcbcrConversionInfo& ycbcrInfo) { in GenerateKey() argument 92 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrModel <= 7)); in GenerateKey() 94 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrRange) <= 1); in GenerateKey() 96 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey() 98 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey() 100 SkASSERT(static_cast<int>(ycbcrInfo.fChromaFilter) <= 1); in GenerateKey() 102 SkASSERT(static_cast<int>(ycbcrInfo.fForceExplicitReconstruction) <= 1); in GenerateKey() 105 uint8_t ycbcrKey = static_cast<uint8_t>(ycbcrInfo.fYcbcrModel); in GenerateKey() 106 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fYcbcrRange) << kRangeShift); in GenerateKey() 107 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fXChromaOffset) << kXChromaOffsetShift); in GenerateKey() [all …]
|
D | GrVkSampler.cpp | 40 const GrVkYcbcrConversionInfo& ycbcrInfo) { in Create() argument 81 if (ycbcrInfo.isValid()) { in Create() 85 gpu->resourceProvider().findOrCreateCompatibleSamplerYcbcrConversion(ycbcrInfo); in Create() 96 VkFormatFeatureFlags flags = ycbcrInfo.fFormatFeatures; in Create() 103 createInfo.magFilter = ycbcrInfo.fChromaFilter; in Create() 104 createInfo.minFilter = ycbcrInfo.fChromaFilter; in Create() 123 return new GrVkSampler(gpu, sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create() 135 const GrVkYcbcrConversionInfo& ycbcrInfo) { in GenerateKey() argument 136 return {samplerState.asIndex(), GrVkSamplerYcbcrConversion::GenerateKey(ycbcrInfo)}; in GenerateKey()
|
D | GrVkImageView.cpp | 17 const GrVkYcbcrConversionInfo& ycbcrInfo) { in Make() argument 23 if (ycbcrInfo.isValid()) { in Make() 24 SkASSERT(gpu->vkCaps().supportsYcbcrConversion() && format == ycbcrInfo.fFormat); in Make() 27 gpu->resourceProvider().findOrCreateCompatibleSamplerYcbcrConversion(ycbcrInfo); in Make()
|
D | GrVkCaps.cpp | 1386 const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); in backend_format_is_external() local 1387 SkASSERT(ycbcrInfo); in backend_format_is_external() 1390 if (ycbcrInfo->isValid() && ycbcrInfo->fExternalFormat != 0) { in backend_format_is_external() 1604 const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); in onAreColorTypeAndFormatCompatible() local 1605 SkASSERT(ycbcrInfo); in onAreColorTypeAndFormatCompatible() 1607 if (ycbcrInfo->isValid() && !GrVkFormatNeedsYcbcrSampler(vkFormat)) { in onAreColorTypeAndFormatCompatible() 1609 if (VK_FORMAT_UNDEFINED == vkFormat && ycbcrInfo->fExternalFormat != 0) { in onAreColorTypeAndFormatCompatible() 1660 const auto* ycbcrInfo = format.getVkYcbcrConversionInfo(); in onGetReadSwizzle() local 1661 SkASSERT(ycbcrInfo); in onGetReadSwizzle() 1662 if (ycbcrInfo->isValid() && ycbcrInfo->fExternalFormat != 0) { in onGetReadSwizzle() [all …]
|
D | GrVkUniformHandler.cpp | 292 auto ycbcrInfo = backendFormat.getVkYcbcrConversionInfo(); in addSampler() local 293 if (ycbcrInfo && ycbcrInfo->isValid()) { in addSampler() 296 state, *ycbcrInfo); in addSampler()
|
D | GrVkResourceProvider.cpp | 224 GrSamplerState params, const GrVkYcbcrConversionInfo& ycbcrInfo) { in findOrCreateCompatibleSampler() argument 225 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, ycbcrInfo)); in findOrCreateCompatibleSampler() 227 sampler = GrVkSampler::Create(fGpu, params, ycbcrInfo); in findOrCreateCompatibleSampler() 239 const GrVkYcbcrConversionInfo& ycbcrInfo) { in findOrCreateCompatibleSamplerYcbcrConversion() argument 241 fYcbcrConversions.find(GrVkSamplerYcbcrConversion::GenerateKey(ycbcrInfo)); in findOrCreateCompatibleSamplerYcbcrConversion() 243 ycbcrConversion = GrVkSamplerYcbcrConversion::Create(fGpu, ycbcrInfo); in findOrCreateCompatibleSamplerYcbcrConversion()
|
D | GrVkResourceProvider.h | 132 const GrVkYcbcrConversionInfo& ycbcrInfo); 137 const GrVkYcbcrConversionInfo& ycbcrInfo);
|
D | GrVkImageView.h | 27 const GrVkYcbcrConversionInfo& ycbcrInfo);
|
D | GrVkSamplerYcbcrConversion.h | 45 static Key GenerateKey(const GrVkYcbcrConversionInfo& ycbcrInfo);
|
/external/skqp/src/gpu/vk/ |
D | GrVkSamplerYcbcrConversion.cpp | 78 const GrVkYcbcrConversionInfo& ycbcrInfo) { in GenerateKey() argument 79 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrModel <= 7)); in GenerateKey() 81 SkASSERT(static_cast<int>(ycbcrInfo.fYcbcrRange) <= 1); in GenerateKey() 83 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey() 85 SkASSERT(static_cast<int>(ycbcrInfo.fXChromaOffset) <= 1); in GenerateKey() 87 SkASSERT(static_cast<int>(ycbcrInfo.fChromaFilter) <= 1); in GenerateKey() 89 SkASSERT(static_cast<int>(ycbcrInfo.fForceExplicitReconstruction) <= 1); in GenerateKey() 92 uint8_t ycbcrKey = static_cast<uint8_t>(ycbcrInfo.fYcbcrModel); in GenerateKey() 93 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fYcbcrRange) << kRangeShift); in GenerateKey() 94 ycbcrKey |= (static_cast<uint8_t>(ycbcrInfo.fXChromaOffset) << kXChromaOffsetShift); in GenerateKey() [all …]
|
D | GrVkSampler.cpp | 30 const GrVkYcbcrConversionInfo& ycbcrInfo) { in Create() argument 71 if (ycbcrInfo.isValid()) { in Create() 75 gpu->resourceProvider().findOrCreateCompatibleSamplerYcbcrConversion(ycbcrInfo); in Create() 86 const VkFormatFeatureFlags& flags = ycbcrInfo.fExternalFormatFeatures; in Create() 94 createInfo.magFilter = ycbcrInfo.fChromaFilter; in Create() 95 createInfo.minFilter = ycbcrInfo.fChromaFilter; in Create() 112 return new GrVkSampler(sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create() 130 const GrVkYcbcrConversionInfo& ycbcrInfo) { in GenerateKey() argument 143 return {samplerKey, GrVkSamplerYcbcrConversion::GenerateKey(ycbcrInfo)}; in GenerateKey()
|
D | GrVkImageView.cpp | 15 const GrVkYcbcrConversionInfo& ycbcrInfo) { in Create() argument 21 if (ycbcrInfo.isValid()) { in Create() 25 gpu->resourceProvider().findOrCreateCompatibleSamplerYcbcrConversion(ycbcrInfo); in Create()
|
D | GrVkResourceProvider.cpp | 227 const GrSamplerState& params, const GrVkYcbcrConversionInfo& ycbcrInfo) { in findOrCreateCompatibleSampler() argument 228 GrVkSampler* sampler = fSamplers.find(GrVkSampler::GenerateKey(params, ycbcrInfo)); in findOrCreateCompatibleSampler() 230 sampler = GrVkSampler::Create(fGpu, params, ycbcrInfo); in findOrCreateCompatibleSampler() 242 const GrVkYcbcrConversionInfo& ycbcrInfo) { in findOrCreateCompatibleSamplerYcbcrConversion() argument 244 fYcbcrConversions.find(GrVkSamplerYcbcrConversion::GenerateKey(ycbcrInfo)); in findOrCreateCompatibleSamplerYcbcrConversion() 246 ycbcrConversion = GrVkSamplerYcbcrConversion::Create(fGpu, ycbcrInfo); in findOrCreateCompatibleSamplerYcbcrConversion()
|
D | GrVkResourceProvider.h | 106 const GrVkYcbcrConversionInfo& ycbcrInfo); 111 const GrVkYcbcrConversionInfo& ycbcrInfo);
|
D | GrVkImageView.h | 27 const GrVkYcbcrConversionInfo& ycbcrInfo);
|
D | GrVkSamplerYcbcrConversion.h | 42 static Key GenerateKey(const GrVkYcbcrConversionInfo& ycbcrInfo);
|
D | GrVkCaps.cpp | 851 const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); in getConfigFromBackendFormat() local 852 if (!vkFormat || !ycbcrInfo) { in getConfigFromBackendFormat() 855 return validate_image_info(*vkFormat, ct, ycbcrInfo->isValid()); in getConfigFromBackendFormat()
|
D | GrVkGpu.cpp | 2390 const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); in getExtraSamplerKeyForProgram() local 2391 SkASSERT(ycbcrInfo); in getExtraSamplerKeyForProgram() 2392 if (!ycbcrInfo->isValid()) { in getExtraSamplerKeyForProgram() 2397 samplerState, *ycbcrInfo); in getExtraSamplerKeyForProgram()
|
/external/skia/src/gpu/ |
D | GrBackendSurface.cpp | 114 GrBackendFormat GrBackendFormat::MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo) { in MakeVk() argument 115 SkASSERT(ycbcrInfo.isValid()); in MakeVk() 116 return GrBackendFormat(ycbcrInfo.fFormat, ycbcrInfo); in MakeVk() 119 GrBackendFormat::GrBackendFormat(VkFormat vkFormat, const GrVkYcbcrConversionInfo& ycbcrInfo) in GrBackendFormat() argument 128 fVk.fYcbcrConversionInfo = ycbcrInfo; in GrBackendFormat() 291 if (const GrVkYcbcrConversionInfo* ycbcrInfo = this->getVkYcbcrConversionInfo()) { in makeTexture2D() local 292 if (ycbcrInfo->isValid()) { in makeTexture2D()
|
/external/skqp/src/gpu/ |
D | GrBackendSurface.cpp | 66 GrBackendFormat GrBackendFormat::MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo) { in MakeVk() argument 68 return GrBackendFormat(VK_FORMAT_UNDEFINED, ycbcrInfo); in MakeVk() 74 GrBackendFormat::GrBackendFormat(VkFormat vkFormat, const GrVkYcbcrConversionInfo& ycbcrInfo) in GrBackendFormat() argument 83 fVk.fYcbcrConversionInfo = ycbcrInfo; in GrBackendFormat()
|
/external/skia/tools/gpu/vk/ |
D | VkYcbcrSamplerHelper.cpp | 179 GrVkYcbcrConversionInfo ycbcrInfo = {vkImageInfo.format, in createBackendTexture() local 203 ycbcrInfo}; in createBackendTexture()
|
/external/skqp/include/gpu/ |
D | GrBackendSurface.h | 57 static GrBackendFormat MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo);
|
/external/skia/include/gpu/ |
D | GrBackendSurface.h | 87 static GrBackendFormat MakeVk(const GrVkYcbcrConversionInfo& ycbcrInfo);
|