intel: Initialize upper 32bits of drm_xe_sync.handle
Some compiles don't initialize the upper 32bits of the union that has u64 addr and u32 handle. Similar to previous patches but doing that for code in intel/misc. Cc: stable Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Signed-off-by: Juston Li <justonli@google.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33172>
This commit is contained in:
committed by
Juston Li
parent
d3adc33175
commit
bb31287d24
@@ -573,9 +573,10 @@ mi_builder_test::submit_batch()
|
|||||||
{
|
{
|
||||||
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
||||||
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
||||||
.handle = sync_handles[0],
|
.addr = 0,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
bind_syncs[0].handle = sync_handles[0];
|
||||||
|
|
||||||
struct drm_xe_vm_bind bind = {
|
struct drm_xe_vm_bind bind = {
|
||||||
.vm_id = xe.vm_id,
|
.vm_id = xe.vm_id,
|
||||||
@@ -596,9 +597,10 @@ mi_builder_test::submit_batch()
|
|||||||
{
|
{
|
||||||
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
||||||
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
||||||
.handle = sync_handles[1],
|
.addr = 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
exec_syncs[0].handle = sync_handles[1];
|
||||||
|
|
||||||
struct drm_xe_exec exec = {
|
struct drm_xe_exec exec = {
|
||||||
.exec_queue_id = xe.queue_id,
|
.exec_queue_id = xe.queue_id,
|
||||||
|
|||||||
@@ -547,10 +547,11 @@ executor_context_dispatch(executor_context *ec)
|
|||||||
struct drm_xe_sync bind_syncs[] = {
|
struct drm_xe_sync bind_syncs[] = {
|
||||||
{
|
{
|
||||||
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
||||||
.handle = sync_handles[0],
|
.addr = 0,
|
||||||
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
bind_syncs[0].handle = sync_handles[0];
|
||||||
|
|
||||||
struct drm_xe_vm_bind bind = {
|
struct drm_xe_vm_bind bind = {
|
||||||
.vm_id = ec->xe.vm_id,
|
.vm_id = ec->xe.vm_id,
|
||||||
@@ -567,14 +568,16 @@ executor_context_dispatch(executor_context *ec)
|
|||||||
struct drm_xe_sync exec_syncs[] = {
|
struct drm_xe_sync exec_syncs[] = {
|
||||||
{
|
{
|
||||||
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
||||||
.handle = sync_handles[0],
|
.addr = 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
.type = DRM_XE_SYNC_TYPE_SYNCOBJ,
|
||||||
.handle = sync_handles[1],
|
.addr = 0,
|
||||||
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
.flags = DRM_XE_SYNC_FLAG_SIGNAL,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
exec_syncs[0].handle = sync_handles[0];
|
||||||
|
exec_syncs[1].handle = sync_handles[1];
|
||||||
|
|
||||||
struct drm_xe_exec exec = {
|
struct drm_xe_exec exec = {
|
||||||
.exec_queue_id = ec->xe.queue_id,
|
.exec_queue_id = ec->xe.queue_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user