summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-17 08:53:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-17 09:30:31 +0100
commit0a9d3dd8c83749992e643675f16486092f2b00fa (patch)
treea7c40ae355ebb0bbf44c600b5edebb4f6f5240b1 /src
parent0a57b55f0fcfa93b38015535002cb11eeaf1dd3a (diff)
sna: Silence valgrind when reading plane properties
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 73907546..89767edb 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -2198,6 +2198,8 @@ static int plane_details(struct sna *sna, struct plane *p)
if (drmIoctl(sna->kgem.fd, LOCAL_IOCTL_MODE_OBJ_GETPROPERTIES, &arg))
arg.count_props = 0;
}
+ VG(VALGRIND_MAKE_MEM_DEFINED(arg.props_ptr, sizeof(uint32_t)*arg.count_props));
+ VG(VALGRIND_MAKE_MEM_DEFINED(arg.prop_values_ptr, sizeof(uint64_t)*arg.count_props));
for (i = 0; i < arg.count_props; i++) {
struct drm_mode_get_property prop;
@@ -2234,6 +2236,7 @@ static int plane_details(struct sna *sna, struct plane *p)
/* XXX we assume that the mapping between kernel enum and
* RandR remains fixed for our lifetimes.
*/
+ VG(VALGRIND_MAKE_MEM_DEFINED(enums, sizeof(*enums)*prop.count_enum_blobs));
for (j = 0; j < prop.count_enum_blobs; j++) {
DBG(("%s: rotation[%d] = %s [%lx]\n", __FUNCTION__,
j, enums[j].name, (long)enums[j].value));