mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
testdisplay: Make the desired tiling mode an unsigned int
We may be able to scan out more tiling formats in the future. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
5f16ef6f28
commit
d9ffb7dfc3
@ -79,7 +79,8 @@ struct termios saved_tio;
|
|||||||
drmModeRes *resources;
|
drmModeRes *resources;
|
||||||
int drm_fd, modes;
|
int drm_fd, modes;
|
||||||
int test_all_modes = 0, test_preferred_mode = 0, force_mode = 0, test_plane,
|
int test_all_modes = 0, test_preferred_mode = 0, force_mode = 0, test_plane,
|
||||||
test_stereo_modes, enable_tiling;
|
test_stereo_modes;
|
||||||
|
unsigned int tiling = I915_TILING_NONE;
|
||||||
int sleep_between_modes = 5;
|
int sleep_between_modes = 5;
|
||||||
int do_dpms = 0; /* This aliases to DPMS_ON */
|
int do_dpms = 0; /* This aliases to DPMS_ON */
|
||||||
uint32_t depth = 24, stride, bpp;
|
uint32_t depth = 24, stride, bpp;
|
||||||
@ -369,8 +370,8 @@ set_mode(struct connector *c)
|
|||||||
height = c->mode.vdisplay;
|
height = c->mode.vdisplay;
|
||||||
|
|
||||||
fb_id = igt_create_fb(drm_fd, width, height,
|
fb_id = igt_create_fb(drm_fd, width, height,
|
||||||
igt_bpp_depth_to_drm_format(bpp, depth),
|
igt_bpp_depth_to_drm_format(bpp, depth),
|
||||||
enable_tiling, &fb_info[current_fb]);
|
tiling, &fb_info[current_fb]);
|
||||||
paint_output_info(c, &fb_info[current_fb]);
|
paint_output_info(c, &fb_info[current_fb]);
|
||||||
paint_color_key(&fb_info[current_fb]);
|
paint_color_key(&fb_info[current_fb]);
|
||||||
|
|
||||||
@ -494,8 +495,8 @@ static uint32_t create_stereo_fb(drmModeModeInfo *mode, struct igt_fb *fb)
|
|||||||
|
|
||||||
stereo_fb_layout_from_mode(&layout, mode);
|
stereo_fb_layout_from_mode(&layout, mode);
|
||||||
fb_id = igt_create_fb(drm_fd, layout.fb_width, layout.fb_height,
|
fb_id = igt_create_fb(drm_fd, layout.fb_width, layout.fb_height,
|
||||||
igt_bpp_depth_to_drm_format(bpp, depth),
|
igt_bpp_depth_to_drm_format(bpp, depth),
|
||||||
enable_tiling, fb);
|
tiling, fb);
|
||||||
cr = igt_get_cairo_ctx(drm_fd, fb);
|
cr = igt_get_cairo_ctx(drm_fd, fb);
|
||||||
|
|
||||||
igt_paint_image(cr, IGT_DATADIR"/1080p-left.png",
|
igt_paint_image(cr, IGT_DATADIR"/1080p-left.png",
|
||||||
@ -803,7 +804,7 @@ int main(int argc, char **argv)
|
|||||||
test_preferred_mode = 1;
|
test_preferred_mode = 1;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
enable_tiling = 1;
|
tiling = I915_TILING_X;
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
qr_code = 1;
|
qr_code = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user