mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-24 07:00:42 +01:00
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:
parent
381bc06c4a
commit
7eaa1bb96c
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ struct VirtGpuPciBusInfo {
|
|||
uint8_t function;
|
||||
};
|
||||
|
||||
#define INVALID_DESCRIPTOR 0xFFFFFFFFU
|
||||
constexpr int32_t INVALID_DESCRIPTOR = 0xFFFFFFFF;
|
||||
|
||||
class VirtGpuResourceMapping;
|
||||
class VirtGpuResource;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue