diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp index 8b84f27175..08d075264d 100644 --- a/src/gpu/vk/GrVkBuffer.cpp +++ b/src/gpu/vk/GrVkBuffer.cpp @@ -107,8 +107,7 @@ sk_sp GrVkBuffer::Make(GrVkGpu* gpu, break; case GrGpuBufferType::kXferCpuToGpu: bufInfo.usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT; - // TODO: After done with all the renaming will move this to kTransfersFromCpuToGpu - allocUsage = BufferUsage::kCpuWritesGpuReads; + allocUsage = BufferUsage::kTransfersFromCpuToGpu; break; case GrGpuBufferType::kXferGpuToCpu: bufInfo.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT; diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp index d4e82a18d5..203c1272cc 100644 --- a/src/gpu/vk/GrVkCaps.cpp +++ b/src/gpu/vk/GrVkCaps.cpp @@ -408,15 +408,6 @@ void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface* fPreferFullscreenClears = true; } - // TODO: Once we are confident we've removed all the reads of vertex and index buffers remove - // using this. - if (kQualcomm_VkVendor == properties.vendorID || kARM_VkVendor == properties.vendorID) { - // On Qualcomm and ARM mapping a gpu buffer and doing both reads and writes to it is slow. - // Thus for index and vertex buffers we will force to use a cpu side buffer and then copy - // the whole buffer up to the gpu. - fBufferMapThreshold = SK_MaxS32; - } - if (properties.vendorID == kNvidia_VkVendor || properties.vendorID == kAMD_VkVendor) { // On discrete GPUs it can be faster to read gpu only memory compared to memory that is also // mappable on the host.