summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-06-27 09:44:15 -0400
committerRob Clark <robdclark@gmail.com>2016-07-30 09:23:42 -0400
commit9f219c7047b51561f6f69274d445e6a6ec41c5f8 (patch)
tree9222818fd1f2d961640e0ae1752659ee58926268 /src/gallium/drivers/freedreno/freedreno_screen.h
parentf02a64dbdd2ec147167ad60357bd46d8d964290a (diff)
downloadexternal_mesa3d-9f219c7047b51561f6f69274d445e6a6ec41c5f8.zip
external_mesa3d-9f219c7047b51561f6f69274d445e6a6ec41c5f8.tar.gz
external_mesa3d-9f219c7047b51561f6f69274d445e6a6ec41c5f8.tar.bz2
freedreno: add batch-cache and batch reordering
Note that I originally also had a entry-point that would construct a key and do lookup from a pipe_surface. I ended up not needing that (yet?) but it is easy-enough to re-introduce later if we need it for the blit path. For now, not enabled by default, but can be enabled (on a3xx/a4xx) with FD_MESA_DEBUG=reorder. Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.h b/src/gallium/drivers/freedreno/freedreno_screen.h
index 0c899d5..38d38f2 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.h
+++ b/src/gallium/drivers/freedreno/freedreno_screen.h
@@ -35,7 +35,7 @@
#include "pipe/p_screen.h"
#include "util/u_memory.h"
-typedef uint32_t u32;
+#include "freedreno_batch_cache.h"
struct fd_bo;
@@ -66,6 +66,10 @@ struct fd_screen {
struct fd_pipe *pipe;
int64_t cpu_gpu_time_delta;
+
+ struct fd_batch_cache batch_cache;
+
+ bool reorder;
};
static inline struct fd_screen *