gfxstream: guest: mBlobId -> mAtomicId
It's a rename so the same concept can be used with sync descriptors. Reviewed-by: Aaron Ruby <aruby@blackberry.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
committed by
Marge Bot
parent
6c0ce98cb0
commit
538af15956
@@ -3045,7 +3045,7 @@ VkResult ResourceTracker::allocateCoherentMemory(VkDevice device,
|
||||
VirtGpuDevice* instance = VirtGpuDevice::getInstance();
|
||||
struct gfxstreamPlaceholderCommandVk placeholderCmd = {};
|
||||
|
||||
createBlobInfo.blobId = ++mBlobId;
|
||||
createBlobInfo.blobId = ++mAtomicId;
|
||||
createBlobInfo.blobMem = kBlobMemGuest;
|
||||
createBlobInfo.blobFlags = kBlobFlagCreateGuestHandle;
|
||||
vk_append_struct(&structChainIter, &createBlobInfo);
|
||||
@@ -3073,7 +3073,7 @@ VkResult ResourceTracker::allocateCoherentMemory(VkDevice device,
|
||||
|
||||
guestBlob->wait();
|
||||
} else if (mCaps.vulkanCapset.deferredMapping) {
|
||||
createBlobInfo.blobId = ++mBlobId;
|
||||
createBlobInfo.blobId = ++mAtomicId;
|
||||
createBlobInfo.blobMem = kBlobMemHost3d;
|
||||
vk_append_struct(&structChainIter, &createBlobInfo);
|
||||
}
|
||||
@@ -3819,7 +3819,7 @@ VkResult ResourceTracker::on_vkAllocateMemory(void* context, VkResult input_resu
|
||||
create3d.format = virglFormat;
|
||||
create3d.width = imageCreateInfo.extent.width;
|
||||
create3d.height = imageCreateInfo.extent.height;
|
||||
create3d.blobId = ++mBlobId;
|
||||
create3d.blobId = ++mAtomicId;
|
||||
|
||||
createBlob.blobCmd = reinterpret_cast<uint8_t*>(&create3d);
|
||||
createBlob.blobCmdSize = sizeof(create3d);
|
||||
@@ -3883,7 +3883,7 @@ VkResult ResourceTracker::on_vkAllocateMemory(void* context, VkResult input_resu
|
||||
create3d.format = virglFormat;
|
||||
create3d.width = width;
|
||||
create3d.height = height;
|
||||
create3d.blobId = ++mBlobId;
|
||||
create3d.blobId = ++mAtomicId;
|
||||
|
||||
createBlob.blobCmd = reinterpret_cast<uint8_t*>(&create3d);
|
||||
createBlob.blobCmdSize = sizeof(create3d);
|
||||
|
||||
@@ -892,7 +892,7 @@ class ResourceTracker {
|
||||
std::vector<VkExtensionProperties> mHostDeviceExtensions;
|
||||
|
||||
// 32 bits only for now, upper bits may be used later.
|
||||
std::atomic<uint32_t> mBlobId = 0;
|
||||
std::atomic<uint32_t> mAtomicId = 0;
|
||||
#if defined(VK_USE_PLATFORM_ANDROID_KHR) || defined(__linux__)
|
||||
int mSyncDeviceFd = -1;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user