diff options
author | Emma Anholt <emma@anholt.net> | 2023-05-18 13:18:33 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-06-12 17:37:54 +0000 |
commit | f71762f54e43ae167581ebfd40adeefb0a0850a2 (patch) | |
tree | 56e2544c2037beb2693d6901d6305070f50f648b | |
parent | 96a0f886a7c6086ba9b654d94d250b81fd1c7b10 (diff) |
softpipe: Drop the use_tgsi debug flag.
We lower to TGSI inside the driver just fine, no need to ask the frontend
for it.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23114>
-rw-r--r-- | docs/envvars.rst | 3 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 3 | ||||
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.h | 1 |
3 files changed, 1 insertions, 6 deletions
diff --git a/docs/envvars.rst b/docs/envvars.rst index a5b4ec33526..6e6be37b4ab 100644 --- a/docs/envvars.rst +++ b/docs/envvars.rst @@ -992,9 +992,6 @@ Softpipe driver environment variables ``use_llvm`` the Softpipe driver will try to use LLVM JIT for vertex shading processing. - ``use_tgsi`` - if set, the Softpipe driver will ask to directly consume TGSI, instead - of NIR. LLVMpipe driver environment variables ------------------------------------- diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 74ff914a01f..c3c0dba7399 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -55,7 +55,6 @@ static const struct debug_named_value sp_debug_options[] = { {"cs", SP_DBG_CS, "dump compute shader assembly to stderr"}, {"no_rast", SP_DBG_NO_RAST, "no-ops rasterization, for profiling purposes"}, {"use_llvm", SP_DBG_USE_LLVM, "Use LLVM if available for shaders"}, - {"use_tgsi", SP_DBG_USE_TGSI, "Request TGSI from the API instead of NIR"}, DEBUG_NAMED_VALUE_END }; @@ -328,7 +327,7 @@ softpipe_get_shader_param(struct pipe_screen *screen, switch (param) { case PIPE_SHADER_CAP_PREFERRED_IR: - return (sp_debug & SP_DBG_USE_TGSI) ? PIPE_SHADER_IR_TGSI : PIPE_SHADER_IR_NIR; + return PIPE_SHADER_IR_NIR; case PIPE_SHADER_CAP_SUPPORTED_IRS: return (1 << PIPE_SHADER_IR_NIR) | (1 << PIPE_SHADER_IR_TGSI); default: diff --git a/src/gallium/drivers/softpipe/sp_screen.h b/src/gallium/drivers/softpipe/sp_screen.h index 755ba00eee9..969fa378ecf 100644 --- a/src/gallium/drivers/softpipe/sp_screen.h +++ b/src/gallium/drivers/softpipe/sp_screen.h @@ -64,7 +64,6 @@ enum sp_debug_flag { SP_DBG_CS = BITFIELD_BIT(5), SP_DBG_USE_LLVM = BITFIELD_BIT(6), SP_DBG_NO_RAST = BITFIELD_BIT(7), - SP_DBG_USE_TGSI = BITFIELD_BIT(8), }; extern int sp_debug; |