mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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 <itoral@igalia.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "17.3" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
53d8508f1d
commit
622786c20c
1 changed files with 2 additions and 0 deletions
|
|
@ -508,6 +508,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue