mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 12:30:11 +01:00
Initialize the fence::error member.
This commit is contained in:
parent
1f4ba62567
commit
22d931f966
1 changed files with 2 additions and 0 deletions
|
|
@ -445,6 +445,7 @@ int drm_fence_object_emit(struct drm_fence_object *fence, uint32_t fence_flags,
|
|||
fence->type = type;
|
||||
fence->waiting_types = 0;
|
||||
fence->signaled_types = 0;
|
||||
fence->error = 0;
|
||||
fence->sequence = sequence;
|
||||
fence->native_types = native_types;
|
||||
if (list_empty(&fc->ring))
|
||||
|
|
@ -482,6 +483,7 @@ static int drm_fence_object_init(struct drm_device *dev, uint32_t fence_class,
|
|||
fence->signaled_types = 0;
|
||||
fence->waiting_types = 0;
|
||||
fence->sequence = 0;
|
||||
fence->error = 0;
|
||||
fence->dev = dev;
|
||||
write_unlock_irqrestore(&fm->lock, flags);
|
||||
if (fence_flags & DRM_FENCE_FLAG_EMIT) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue