diff options
author | Rob Clark <[email protected]> | 2019-03-19 13:30:03 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-03-21 09:13:05 -0400 |
commit | bcd81d238797fdccaae0e94444162f1a1769a89e (patch) | |
tree | 34b2504fccf70de9cc7e56c2c126c6d84c821083 /src/freedreno/ir3/ir3_compiler.c | |
parent | 1443694ee5a063936afc5f273d75294ea77c0bc7 (diff) |
freedreno/ir3: optimize sam.s2en to sam
Detect when sampler/texture idx are immediate and switch to non s2en
encoding.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_compiler.c')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index f00daebabf5..ac126d5b98f 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -29,12 +29,13 @@ #include "ir3_compiler.h" static const struct debug_named_value shader_debug_options[] = { - {"vs", IR3_DBG_SHADER_VS, "Print shader disasm for vertex shaders"}, - {"fs", IR3_DBG_SHADER_FS, "Print shader disasm for fragment shaders"}, - {"cs", IR3_DBG_SHADER_CS, "Print shader disasm for compute shaders"}, - {"disasm", IR3_DBG_DISASM, "Dump NIR and adreno shader disassembly"}, - {"optmsgs", IR3_DBG_OPTMSGS,"Enable optimizer debug messages"}, - DEBUG_NAMED_VALUE_END + {"vs", IR3_DBG_SHADER_VS, "Print shader disasm for vertex shaders"}, + {"fs", IR3_DBG_SHADER_FS, "Print shader disasm for fragment shaders"}, + {"cs", IR3_DBG_SHADER_CS, "Print shader disasm for compute shaders"}, + {"disasm", IR3_DBG_DISASM, "Dump NIR and adreno shader disassembly"}, + {"optmsgs", IR3_DBG_OPTMSGS, "Enable optimizer debug messages"}, + {"forces2en", IR3_DBG_FORCES2EN, "Force s2en mode for tex sampler instructions"}, + DEBUG_NAMED_VALUE_END }; DEBUG_GET_ONCE_FLAGS_OPTION(ir3_shader_debug, "IR3_SHADER_DEBUG", shader_debug_options, 0) |