lib/igt_kms: Fix igt_fb_set_size() debug message
PATCH 1/2 lib/igt_kms: Fix igt_fb_set_size() debug message
From: Ville Syrjälä <[email protected]>
The debug message in igt_fb_set_size() was copy pasted from igt_fb_set_position() and not adjusted to say the right thing. Fix it up.
Signed-off-by Ville Syrjälä <[email protected]>
--- lib/igt_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/igt_kms.c +1 -1
@@ -1912,7 +1912,7 @@ void igt_fb_set_size(struct igt_fb *fb, igt_plane_t *plane,igt_pipe_t *pipe = plane->pipe;igt_display_t *display = pipe->display; -LOG (display,"%s.%d: fb_set_position(%dx%d)\n" , +LOG (display,"%s.%d: fb_set_size(%dx%d)\n" ,kmstest_pipe_name (pipe->pipe), plane->index, w, h); fb->src_w = w;
Signature · 6 lines
2.4.10 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 lib/igt_fb: Fix gen2 and 915 Y tile sizes
From: Ville Syrjälä <[email protected]>
gen2 tile dimensions are 128x32 for both X and Y tiling 915 tile dimensions are 512x8 for both X and Y tiling
Fix igt_get_fb_tile_size() to return the correct Y tile dimensions for these platforms. X tile was fine already.
Cc Paulo Zanoni <[email protected]>
Signed-off-by Ville Syrjälä <[email protected]>
--- lib/igt_fb.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
lib/igt_fb.c +8 -3
@@ -93,11 +93,16 @@ static void igt_get_fb_tile_size(int fd, uint64_t tiling, int fb_bpp, }break ;case LOCAL_I915_FORMAT_MOD_Y_TILED : -if (IS_915 (devid)) +if (intel_gen (devid) ==2 ) { + *width_ret =128 ; + *height_ret =16 ; + }else if (IS_915 (devid)) { *width_ret =512 ; -else + *height_ret =8 ; + }else { *width_ret =128 ; - *height_ret =32 ; + *height_ret =32 ; + }break ;case LOCAL_I915_FORMAT_MOD_Yf_TILED:switch (fb_bpp) {
Signature · 6 lines
2.4.10 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx