From 027f1302fcb6bbfee920184c47816d73387aeec3 Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 9 Mar 2020 08:35:30 -0400 Subject: [PATCH] radeonsi: add option to disable EFC Signed-off-by: Thong Thai Reviewed-by: Leo Liu Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 3 +++ src/gallium/drivers/radeonsi/si_pipe.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 66e829c83f1..e1c4a41761a 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -92,6 +92,9 @@ static const struct debug_named_value radeonsi_debug_options[] = { {"shadowregs", DBG(SHADOW_REGS), "Enable CP register shadowing."}, {"nofastdlist", DBG(NO_FAST_DISPLAY_LIST), "Disable fast display lists"}, + /* Multimedia options: */ + { "noefc", DBG(NO_EFC), "Disable hardware based encoder colour format conversion."}, + /* 3D engine options: */ {"nogfx", DBG(NO_GFX), "Disable graphics. Only multimedia compute paths can be used."}, {"nongg", DBG(NO_NGG), "Disable NGG and use the legacy pipeline."}, diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 976dac1374d..994f679d816 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -221,6 +221,9 @@ enum DBG_SHADOW_REGS, DBG_NO_FAST_DISPLAY_LIST, + /* Multimedia options: */ + DBG_NO_EFC, + /* 3D engine options: */ DBG_NO_GFX, DBG_NO_NGG,