mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 01:46:14 +00:00
kms_frontbuffer_tracking: assert the stride changes at stridechange()
We use igt_create_fb(), which decides the stride by itself: there's no guarantee that making a buffer 512 pixels bigger is going to make its stride change. I had a fix for this problem that was supposed to be applied before this patch, but due to a rework request I'm changing the order of the patches, so we should expect to hit this assertion for now. At least the root cause of the problem is clear now. v2: Update the commit message due to the patch order changing. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
f23ea58f1f
commit
98bb8428b2
@ -2959,6 +2959,8 @@ static void stridechange_subtest(const struct test_mode *t)
|
||||
LOCAL_I915_FORMAT_MOD_X_TILED, t->plane, &new_fb);
|
||||
fill_fb(&new_fb, COLOR_PRIM_BG);
|
||||
|
||||
igt_assert(old_fb->stride != new_fb.stride);
|
||||
|
||||
/* We can't assert that FBC will be enabled since there may not be
|
||||
* enough space for the CFB, but we can check the CRC. */
|
||||
params->fb.fb = &new_fb;
|
||||
|
Loading…
x
Reference in New Issue
Block a user