Using the drm_fixed calls, this needs to be changed. Which in fact is
more correct, colour.YCbCr_to_RGB() gives 0x8080 for same the yuv
parameters.

Signed-off-by: Arthur Grillo <arthurgri...@riseup.net>
---
 drivers/gpu/drm/vkms/tests/vkms_format_test.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/vkms/tests/vkms_format_test.c 
b/drivers/gpu/drm/vkms/tests/vkms_format_test.c
index 66cdd83c3d25..49125cf76eb5 100644
--- a/drivers/gpu/drm/vkms/tests/vkms_format_test.c
+++ b/drivers/gpu/drm/vkms/tests/vkms_format_test.c
@@ -48,7 +48,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 6,
                .colors = {
                        {"white", {0xff, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x00, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x4c, 0x55, 0xff}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0x96, 0x2c, 0x15}, {0xffff, 0x0000, 0xffff, 
0x0000}},
@@ -71,7 +71,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 6,
                .colors = {
                        {"white", {0xeb, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x10, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x51, 0x5a, 0xf0}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0x91, 0x36, 0x22}, {0xffff, 0x0000, 0xffff, 
0x0000}},
@@ -94,7 +94,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 4,
                .colors = {
                        {"white", {0xff, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x00, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x36, 0x63, 0xff}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0xb6, 0x1e, 0x0c}, {0xffff, 0x0000, 0xffff, 
0x0000}},
@@ -117,7 +117,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 4,
                .colors = {
                        {"white", {0xeb, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x10, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x3f, 0x66, 0xf0}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0xad, 0x2a, 0x1a}, {0xffff, 0x0000, 0xffff, 
0x0000}},
@@ -140,7 +140,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 4,
                .colors = {
                        {"white", {0xff, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x80, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x00, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x43, 0x5c, 0xff}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0xad, 0x24, 0x0b}, {0xffff, 0x0000, 0xffff, 
0x0000}},
@@ -163,7 +163,7 @@ static struct yuv_u8_to_argb_u16_case 
yuv_u8_to_argb_u16_cases[] = {
                .n_colors = 4,
                .colors = {
                        {"white", {0xeb, 0x80, 0x80}, {0xffff, 0xffff, 0xffff, 
0xffff}},
-                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8000, 0x8000, 
0x8000}},
+                       {"gray",  {0x7e, 0x80, 0x80}, {0xffff, 0x8080, 0x8080, 
0x8080}},
                        {"black", {0x10, 0x80, 0x80}, {0xffff, 0x0000, 0x0000, 
0x0000}},
                        {"red",   {0x4a, 0x61, 0xf0}, {0xffff, 0xffff, 0x0000, 
0x0000}},
                        {"green", {0xa4, 0x2f, 0x19}, {0xffff, 0x0000, 0xffff, 
0x0000}},

-- 
2.43.0

Reply via email to