diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-12-13 10:35:19 +0100 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-12-13 13:28:08 +0200 |
commit | 10c2c640b7219fca60cefc53ba1ca4669832b218 (patch) | |
tree | bf1d0282964ed73c7cb48f8cb1f44c3caaa487de /tests/gem_shrink.c | |
parent | 023f618a930b8362681e86103d9a38a7a53e67ba (diff) |
test/kms_plane_lowres: Fix display_commit_mode() so it returns the crc
Compiler complained on crc_lowres and crc_hires2 being uninitialized
and indeed, display_commit_mode() seems to have intention of returning
the value through the parameter that is only a single pointer.
This causes only the local copy of the pointer, the one inside
display_commit_mode(), to be overwritten.
Let's fix that!
Also add missing hires crc comparison (M. Kahola).
v2: make display_commit_mode return just the last CRC
v3: Don't do memory allocations, it's hard. (Maarten)
v4: Use igt_pipe_crc_collect_crc() instead, cleans up crc handling a lot.
Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'tests/gem_shrink.c')
0 files changed, 0 insertions, 0 deletions