@@ -361,7 +361,7 @@ static unsigned long rotated_index(const struct intel_rotation_info *r,
361
361
unsigned int x ,
362
362
unsigned int y )
363
363
{
364
- return (r -> plane [n ].stride * (r -> plane [n ].height - y - 1 ) +
364
+ return (r -> plane [n ].src_stride * (r -> plane [n ].height - y - 1 ) +
365
365
r -> plane [n ].offset + x );
366
366
}
367
367
@@ -411,7 +411,7 @@ static unsigned long remapped_index(const struct intel_remapped_info *r,
411
411
unsigned int x ,
412
412
unsigned int y )
413
413
{
414
- return (r -> plane [n ].stride * y +
414
+ return (r -> plane [n ].src_stride * y +
415
415
r -> plane [n ].offset + x );
416
416
}
417
417
@@ -479,21 +479,21 @@ static int igt_vma_rotate_remap(void *arg)
479
479
struct i915_address_space * vm = & ggtt -> vm ;
480
480
struct drm_i915_gem_object * obj ;
481
481
const struct intel_remapped_plane_info planes [] = {
482
- { .width = 1 , .height = 1 , .stride = 1 },
483
- { .width = 2 , .height = 2 , .stride = 2 },
484
- { .width = 4 , .height = 4 , .stride = 4 },
485
- { .width = 8 , .height = 8 , .stride = 8 },
482
+ { .width = 1 , .height = 1 , .src_stride = 1 },
483
+ { .width = 2 , .height = 2 , .src_stride = 2 },
484
+ { .width = 4 , .height = 4 , .src_stride = 4 },
485
+ { .width = 8 , .height = 8 , .src_stride = 8 },
486
486
487
- { .width = 3 , .height = 5 , .stride = 3 },
488
- { .width = 3 , .height = 5 , .stride = 4 },
489
- { .width = 3 , .height = 5 , .stride = 5 },
487
+ { .width = 3 , .height = 5 , .src_stride = 3 },
488
+ { .width = 3 , .height = 5 , .src_stride = 4 },
489
+ { .width = 3 , .height = 5 , .src_stride = 5 },
490
490
491
- { .width = 5 , .height = 3 , .stride = 5 },
492
- { .width = 5 , .height = 3 , .stride = 7 },
493
- { .width = 5 , .height = 3 , .stride = 9 },
491
+ { .width = 5 , .height = 3 , .src_stride = 5 },
492
+ { .width = 5 , .height = 3 , .src_stride = 7 },
493
+ { .width = 5 , .height = 3 , .src_stride = 9 },
494
494
495
- { .width = 4 , .height = 6 , .stride = 6 },
496
- { .width = 6 , .height = 4 , .stride = 6 },
495
+ { .width = 4 , .height = 6 , .src_stride = 6 },
496
+ { .width = 6 , .height = 4 , .src_stride = 6 },
497
497
{ }
498
498
}, * a , * b ;
499
499
enum i915_ggtt_view_type types [] = {
@@ -523,8 +523,8 @@ static int igt_vma_rotate_remap(void *arg)
523
523
struct intel_remapped_plane_info * plane_info = view .remapped .plane ;
524
524
unsigned int n , max_offset ;
525
525
526
- max_offset = max (plane_info [0 ].stride * plane_info [0 ].height ,
527
- plane_info [1 ].stride * plane_info [1 ].height );
526
+ max_offset = max (plane_info [0 ].src_stride * plane_info [0 ].height ,
527
+ plane_info [1 ].src_stride * plane_info [1 ].height );
528
528
GEM_BUG_ON (max_offset > max_pages );
529
529
max_offset = max_pages - max_offset ;
530
530
@@ -596,11 +596,11 @@ static int igt_vma_rotate_remap(void *arg)
596
596
"rotated" : "remapped" , n ,
597
597
plane_info [0 ].width ,
598
598
plane_info [0 ].height ,
599
- plane_info [0 ].stride ,
599
+ plane_info [0 ].src_stride ,
600
600
plane_info [0 ].offset ,
601
601
plane_info [1 ].width ,
602
602
plane_info [1 ].height ,
603
- plane_info [1 ].stride ,
603
+ plane_info [1 ].src_stride ,
604
604
plane_info [1 ].offset );
605
605
err = - EINVAL ;
606
606
goto out_object ;
@@ -853,21 +853,21 @@ static int igt_vma_remapped_gtt(void *arg)
853
853
{
854
854
struct drm_i915_private * i915 = arg ;
855
855
const struct intel_remapped_plane_info planes [] = {
856
- { .width = 1 , .height = 1 , .stride = 1 },
857
- { .width = 2 , .height = 2 , .stride = 2 },
858
- { .width = 4 , .height = 4 , .stride = 4 },
859
- { .width = 8 , .height = 8 , .stride = 8 },
856
+ { .width = 1 , .height = 1 , .src_stride = 1 },
857
+ { .width = 2 , .height = 2 , .src_stride = 2 },
858
+ { .width = 4 , .height = 4 , .src_stride = 4 },
859
+ { .width = 8 , .height = 8 , .src_stride = 8 },
860
860
861
- { .width = 3 , .height = 5 , .stride = 3 },
862
- { .width = 3 , .height = 5 , .stride = 4 },
863
- { .width = 3 , .height = 5 , .stride = 5 },
861
+ { .width = 3 , .height = 5 , .src_stride = 3 },
862
+ { .width = 3 , .height = 5 , .src_stride = 4 },
863
+ { .width = 3 , .height = 5 , .src_stride = 5 },
864
864
865
- { .width = 5 , .height = 3 , .stride = 5 },
866
- { .width = 5 , .height = 3 , .stride = 7 },
867
- { .width = 5 , .height = 3 , .stride = 9 },
865
+ { .width = 5 , .height = 3 , .src_stride = 5 },
866
+ { .width = 5 , .height = 3 , .src_stride = 7 },
867
+ { .width = 5 , .height = 3 , .src_stride = 9 },
868
868
869
- { .width = 4 , .height = 6 , .stride = 6 },
870
- { .width = 6 , .height = 4 , .stride = 6 },
869
+ { .width = 4 , .height = 6 , .src_stride = 6 },
870
+ { .width = 6 , .height = 4 , .src_stride = 6 },
871
871
{ }
872
872
}, * p ;
873
873
enum i915_ggtt_view_type types [] = {
0 commit comments