diff mbox series

[libdrm] util: Remove unused definitions of RED, GREEN, and BLUE

Message ID 76c3c5d0e44a385f7289a918ca77cc3ca19a9b18.1657554940.git.geert@linux-m68k.org (mailing list archive)
State New, archived
Headers show
Series [libdrm] util: Remove unused definitions of RED, GREEN, and BLUE | expand

Commit Message

Geert Uytterhoeven July 11, 2022, 3:56 p.m. UTC
These are unused since commit edcef53685edf5fb ("modetest: Add test
pattern support for missing RGB formats").

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 tests/util/pattern.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Laurent Pinchart July 11, 2022, 4:35 p.m. UTC | #1
Hi Geert,

Thank you for the patch.

On Mon, Jul 11, 2022 at 05:56:41PM +0200, Geert Uytterhoeven wrote:
> These are unused since commit edcef53685edf5fb ("modetest: Add test
> pattern support for missing RGB formats").
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  tests/util/pattern.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/tests/util/pattern.c b/tests/util/pattern.c
> index f28fad311ec3de11..178aee8341a38920 100644
> --- a/tests/util/pattern.c
> +++ b/tests/util/pattern.c
> @@ -764,11 +764,6 @@ static void fill_smpte(const struct util_format_info *info, void *planes[3],
>  	}
>  }
>  
> -/* swap these for big endian.. */
> -#define RED   2
> -#define GREEN 1
> -#define BLUE  0
> -
>  static void make_pwetty(void *data, unsigned int width, unsigned int height,
>  			unsigned int stride, uint32_t format)
>  {
diff mbox series

Patch

diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index f28fad311ec3de11..178aee8341a38920 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -764,11 +764,6 @@  static void fill_smpte(const struct util_format_info *info, void *planes[3],
 	}
 }
 
-/* swap these for big endian.. */
-#define RED   2
-#define GREEN 1
-#define BLUE  0
-
 static void make_pwetty(void *data, unsigned int width, unsigned int height,
 			unsigned int stride, uint32_t format)
 {