anv: optimize POSTSYNC_DATA rewrites in timestamp emissions
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29438>
This commit is contained in:

committed by
Marge Bot

parent
3984875792
commit
fd49b815ce
@@ -5811,8 +5811,10 @@ void genX(cmd_emit_timestamp)(struct anv_batch *batch,
|
||||
},
|
||||
});
|
||||
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(dwords); i++)
|
||||
((uint32_t *)data)[i] |= dwords[i];
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(dwords); i++) {
|
||||
if (dwords[i])
|
||||
((uint32_t *)data)[i] |= dwords[i];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5831,8 +5833,10 @@ void genX(cmd_emit_timestamp)(struct anv_batch *batch,
|
||||
}
|
||||
});
|
||||
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(dwords); i++)
|
||||
((uint32_t *)data)[i] |= dwords[i];
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(dwords); i++) {
|
||||
if (dwords[i])
|
||||
((uint32_t *)data)[i] |= dwords[i];
|
||||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user