sna/damage: Mark the box as packed so that the embedded_box is aligned correctly
valgrind was complaining about an overlapping memcpy on a 64-bit platform as gcc padded the sna_damage_box to 28 bytes... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
4652a20de5
commit
7ff42e9c83
|
|
@ -48,6 +48,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
* cheapy discard no-ops.
|
||||
*/
|
||||
|
||||
struct sna_damage_box {
|
||||
struct list list;
|
||||
int size;
|
||||
} __attribute__((packed));
|
||||
|
||||
static struct sna_damage *__freed_damage;
|
||||
|
||||
static inline bool region_is_singular(RegionRec *r)
|
||||
|
|
@ -182,11 +187,6 @@ static struct sna_damage *_sna_damage_create(void)
|
|||
return damage;
|
||||
}
|
||||
|
||||
struct sna_damage_box {
|
||||
struct list list;
|
||||
int size;
|
||||
};
|
||||
|
||||
static bool _sna_damage_create_boxes(struct sna_damage *damage,
|
||||
int count)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
#include "compiler.h"
|
||||
|
||||
struct sna_damage_box;
|
||||
|
||||
struct sna_damage {
|
||||
BoxRec extents;
|
||||
pixman_region16_t region;
|
||||
|
|
|
|||
Loading…
Reference in New Issue