gfxstream: explicitly assign INVALID_DESCRIPTOR

Sometimes, it's used with fds (int32_t), sometimes with
gem_handle (uint32_t).  Be consistent and explicitly cast
when needed.

Reviewed-by: David Gilhooley <djgilhooley@gmail.com>
Reviewed-by: Aaron Ruby <aruby@qnx.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40442>
This commit is contained in:
Gurchetan Singh 2026-03-11 17:07:25 -07:00 committed by Marge Bot
parent 381bc06c4a
commit 7eaa1bb96c
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ DrmVirtGpuResource::DrmVirtGpuResource(int64_t deviceHandle, uint32_t blobHandle
}
DrmVirtGpuResource::~DrmVirtGpuResource() {
if (mBlobHandle == INVALID_DESCRIPTOR) {
if (mBlobHandle == static_cast<uint32_t>(INVALID_DESCRIPTOR)) {
return;
}

View file

@ -129,7 +129,7 @@ struct VirtGpuPciBusInfo {
uint8_t function;
};
#define INVALID_DESCRIPTOR 0xFFFFFFFFU
constexpr int32_t INVALID_DESCRIPTOR = 0xFFFFFFFF;
class VirtGpuResourceMapping;
class VirtGpuResource;