From 2346ea6347bd59a92638d94c12ef731bbfcd720a Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 29 Mar 2014 11:06:49 -0400 Subject: freedreno/a3xx: missing wfi RB_FRAME_BUFFER_DIMENSION is not a banked context register, so we need to wait for the GPU to idle before updating it. But we'd rather not have unnecessary WFI's, so actually keep track if we need to emit it or not. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_context.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/freedreno/freedreno_context.h') diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 7db1fd1fa0a..a50e6236903 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -170,6 +170,12 @@ struct fd_context { */ bool needs_wfi; + /* Do we need to re-emit RB_FRAME_BUFFER_DIMENSION? At least on a3xx + * it is not a banked context register, so it needs a WFI to update. + * Keep track if it has actually changed, to avoid unneeded WFI. + * */ + bool needs_rb_fbd; + /* Keep track of DRAW initiators that need to be patched up depending * on whether we using binning or not: */ -- cgit v1.2.3