summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-12-13 17:23:41 -0800
committerEmil Velikov <[email protected]>2018-01-24 19:27:19 +0000
commite66bafa97360ac5c1be310a25a7a77b90fb5c08e (patch)
tree6b2c6b813acefa009875140c442cc94d4db2af42 /src/mesa
parent510f1b3cb9fd52e86c8972e516a201d7e6626f68 (diff)
i965: Call brw_cache_flush_for_render in predraw_resolve_framebuffer
This makes sure we flush things out of other caches prior to using a surface through the render cache. Currently, this is a no-op because GL won't let you bind anything other than a color surface as color so it should never end up in the depth cache. However, this does complete the flush/add_bo pair for regular drawing which will be required for the next commit. Reviewed-by: Iago Toral Quiroga <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "17.3" <[email protected]> (cherry picked from commit 622786c20c6cd073071b00ddf6e50c447f8c5768)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index c38ca4a5857..c2f67d77f38 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -512,6 +512,8 @@ brw_predraw_resolve_framebuffer(struct brw_context *brw)
irb->mt_layer, irb->layer_count,
isl_format,
ctx->Color.BlendEnabled & (1 << i));
+
+ brw_cache_flush_for_render(brw, irb->mt->bo);
}
}