mesa-drm/tests/modetest
Tobias Jakobi b1d19de764 modetest: initialize handles/pitches in set_plane()
Only the 'offsets' array was initialized to zero.
Since bo_create only sets the handles which are
necessary, were we passing garbage data to the
kernel when calling drmModeAddFB2 later.

The issue only seems to appear when passing e.g.
NV12 data to the kernel, a case where not only
handles[0] is used. I therefore also removed the
corresponding comment.

v2: Do the same for set_mode(), set_cursors()
    and test_page_flip().

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-04-28 11:23:14 +01:00
..
Android.mk android: remove unnecessary TARGET_OUT_HEADERS variable 2015-04-09 16:26:59 +01:00
buffers.c drm: rename libdrm{,_macros}.h 2015-04-28 11:19:15 +01:00
buffers.h modetest: Allocate dumb buffers with the correct bpp 2015-01-11 14:37:53 +02:00
cursor.c modetest: Use threads for cursors instead of SIGALRM 2014-11-22 11:45:02 -05:00
cursor.h modetest: add cursor support 2014-04-22 11:14:12 -04:00
Makefile.am modetest: Allocate dumb buffers with the correct bpp 2015-01-11 14:37:53 +02:00
Makefile.sources modetest: move sources lists to makefiles.sources 2014-09-28 17:09:34 +01:00
modetest.c modetest: initialize handles/pitches in set_plane() 2015-04-28 11:23:14 +01:00