[igt-dev] [PATCH i-g-t 9/9] tests/kms_plane: Fix format/mod for reference FB
Imre Deak
imre.deak at intel.com
Wed Jan 29 18:16:01 UTC 2020
Fix the use of uninited format, modifier.
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
tests/kms_plane.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 9ef3a7f3..7d7316d5 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -683,7 +683,7 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
struct igt_fb test_fb;
int ret;
- igt_create_fb(data->drm_fd, 64, 64, format,
+ igt_create_fb(data->drm_fd, 64, 64, ref_format,
LOCAL_DRM_FORMAT_MOD_NONE, &test_fb);
igt_plane_set_fb(plane, &test_fb);
@@ -704,7 +704,7 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
const color_t *c = &data->colors[i];
test_format_plane_color(data, pipe, plane,
- format, modifier,
+ ref_format, ref_modifier,
width, height,
IGT_COLOR_YCBCR_BT709,
IGT_COLOR_YCBCR_LIMITED_RANGE,
--
2.23.1
More information about the igt-dev
mailing list