summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_screen.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-08-24 09:34:48 -0400
committerRob Clark <[email protected]>2017-10-24 12:56:51 -0400
commiteed9685dd6619ec7598e8c3fd81117d36010510d (patch)
tree32b4b7948357bca78ac988c076070ea258f1521c /src/gallium/drivers/freedreno/freedreno_screen.h
parent9c32333a58e2792a062bd82374ea88222d718959 (diff)
freedreno: per-context fd_pipe
To enable per-context priorities, we need to have per-context pipe's. Unfortunately we still need to keep the global screen pipe, mostly just for screen->get_timestamp(). Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.h b/src/gallium/drivers/freedreno/freedreno_screen.h
index c5018da4bc5..68518ef721b 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.h
+++ b/src/gallium/drivers/freedreno/freedreno_screen.h
@@ -72,6 +72,11 @@ struct fd_screen {
void *compiler; /* currently unused for a2xx */
struct fd_device *dev;
+
+ /* NOTE: we still need a pipe associated with the screen in a few
+ * places, like screen->get_timestamp(). For anything context
+ * related, use ctx->pipe instead.
+ */
struct fd_pipe *pipe;
int64_t cpu_gpu_time_delta;