diff options
-rw-r--r-- | src/gpu/vk/GrVkBuffer.cpp | 4 | ||||
-rw-r--r-- | src/gpu/vk/GrVkCaps.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp index d0332b9683..9926ec4ad0 100644 --- a/src/gpu/vk/GrVkBuffer.cpp +++ b/src/gpu/vk/GrVkBuffer.cpp @@ -227,6 +227,6 @@ bool GrVkBuffer::vkUpdateData(GrVkGpu* gpu, const void* src, size_t srcSizeInByt void GrVkBuffer::validate() const { SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType - || kCopyRead_Type == fDesc.fType || kCopyWrite_Type == fDesc.fType - || kUniform_Type == fDesc.fType); + || kTexel_Type == fDesc.fType || kCopyRead_Type == fDesc.fType + || kCopyWrite_Type == fDesc.fType || kUniform_Type == fDesc.fType); } diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp index e8a397847c..db926179be 100644 --- a/src/gpu/vk/GrVkCaps.cpp +++ b/src/gpu/vk/GrVkCaps.cpp @@ -248,6 +248,8 @@ void GrVkCaps::initShaderCaps(const VkPhysicalDeviceProperties& properties, uint } shaderCaps->fIntegerSupport = true; + shaderCaps->fTexelBufferSupport = true; + shaderCaps->fTexelFetchSupport = true; shaderCaps->fVertexIDSupport = true; // Assume the minimum precisions mandated by the SPIR-V spec. |