summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-02-03 11:28:30 -0500
committerRob Clark <[email protected]>2014-02-03 18:26:53 -0500
commit1b886078dbff593ceb23b05b3ce78a3bb3cbcb94 (patch)
tree2dc8aa5fdcbc8ec2b3ccac10402714bee8d28bc7 /src/gallium/drivers/freedreno/freedreno_screen.c
parent554f1ac00c43f4503b923e1a129c0039468dcb82 (diff)
freedreno: enabling binning and opt by default
Hw binning pass doesn't seem to have broken anything. And optimizing compiler fixes a lot of shaders and doesn't seem to break anything. So re-org slightly FD_MESA_DEBUG params and make both hw binning and optimizer enabled by default. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index f6affd6c417..f1822268851 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -65,18 +65,17 @@ static const struct debug_named_value debug_options[] = {
{"direct", FD_DBG_DIRECT, "Force inline (SS_DIRECT) state loads"},
{"dbypass", FD_DBG_DBYPASS,"Disable GMEM bypass"},
{"fraghalf", FD_DBG_FRAGHALF, "Use half-precision in fragment shader"},
- {"binning", FD_DBG_BINNING, "Enable hw binning"},
- {"dbinning", FD_DBG_DBINNING, "Disable hw binning"},
- {"optimize", FD_DBG_OPTIMIZE, "Enable optimization passes in compiler"},
- {"optmsgs", FD_DBG_OPTMSGS, "Enable optimizater debug messages"},
- {"optdump", FD_DBG_OPTDUMP, "Dump shader DAG to .dot files"},
+ {"nobin", FD_DBG_NOBIN, "Disable hw binning"},
+ {"noopt", FD_DBG_NOOPT , "Disable optimization passes in compiler"},
+ {"optmsgs", FD_DBG_OPTMSGS,"Enable optimizater debug messages"},
+ {"optdump", FD_DBG_OPTDUMP,"Dump shader DAG to .dot files"},
DEBUG_NAMED_VALUE_END
};
DEBUG_GET_ONCE_FLAGS_OPTION(fd_mesa_debug, "FD_MESA_DEBUG", debug_options, 0)
int fd_mesa_debug = 0;
-bool fd_binning_enabled = false; /* default to off for now */
+bool fd_binning_enabled = true;
static const char *
fd_screen_get_name(struct pipe_screen *pscreen)
@@ -395,10 +394,7 @@ fd_screen_create(struct fd_device *dev)
fd_mesa_debug = debug_get_option_fd_mesa_debug();
- if (fd_mesa_debug & FD_DBG_BINNING)
- fd_binning_enabled = true;
-
- if (fd_mesa_debug & FD_DBG_DBINNING)
+ if (fd_mesa_debug & FD_DBG_NOBIN)
fd_binning_enabled = false;
if (!screen)