mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +00:00
tiling: Convert framebuffer helpers to use fb modifiers
This converts the IGT API only, underneath legacy set_tiling is still used. v2: One got away in kms_flip. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
committed by
Damien Lespiau
parent
672e88acb7
commit
e36091d1c7
@@ -84,7 +84,8 @@ test_flip_changes_tiling(data_t *data, igt_output_t *output)
|
||||
while (width < mode->hdisplay)
|
||||
width *= 2;
|
||||
fb_id = igt_create_fb(data->drm_fd, width, mode->vdisplay,
|
||||
DRM_FORMAT_XRGB8888, I915_TILING_NONE, &linear);
|
||||
DRM_FORMAT_XRGB8888, LOCAL_DRM_FORMAT_MOD_NONE,
|
||||
&linear);
|
||||
|
||||
/* fill it with a pattern that will look wrong if tiling is wrong */
|
||||
fill_linear_fb(&linear, data, mode);
|
||||
@@ -96,8 +97,8 @@ test_flip_changes_tiling(data_t *data, igt_output_t *output)
|
||||
|
||||
/* allocate a tiled buffer and set the crtc with it */
|
||||
igt_create_color_fb(data->drm_fd, width, mode->vdisplay,
|
||||
DRM_FORMAT_XRGB8888, I915_TILING_X, 0.0, 0.0, 0.0,
|
||||
&tiled);
|
||||
DRM_FORMAT_XRGB8888, LOCAL_I915_FORMAT_MOD_X_TILED,
|
||||
0.0, 0.0, 0.0, &tiled);
|
||||
igt_plane_set_fb(primary, &tiled);
|
||||
igt_display_commit(&data->display);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user