Skip to content

virgl:Fix ITEM_CPY macro pointer copy bug

liu cong requested to merge liucong2/mesa:virgl into main

What does this MR do and why?

virgl:Fix ITEM_CPY macro pointer copy bug

The ITEM_CPY macro uses the memcpy function to copy the item variable. When item is a pointer, the memcpy function will copy the value of the pointer, not the address that the pointer points to.

Signed-off-by: Cong Liu liucong2@kylinos.cn

Merge request reports