summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2013-05-07 14:55:42 -0700
committerPaul Berry <stereotype441@gmail.com>2013-06-12 11:10:07 -0700
commit67cd0f97030a358777c01ee6ad79926717dfdf42 (patch)
treef2c142608a6da3c79db7d3b5ba89de86f7d1b87a /src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
parente9dfcb38e97ac05023759b749fb6f8f56ab28f57 (diff)
i965/gen7+: Resolve color buffers when necessary.
Resolve color buffers that have been fast-color cleared: 1. before texturing from the buffer (brw_predraw_resolve_buffers()) 2. before using the buffer as the source in a blorp blit (brw_blorp_blit_miptrees()) 3. before mapping the buffer's miptree (intel_miptree_map_raw(), intel_texsubimage_tiled_memcpy()) 4. before accessing the buffer using the hardware blitter (intel_miptree_blit(), do_blit_bitmap()) v2: Rework based on the fact that we have decided not to use an accessor function to protect access to the region. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp_clear.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp_clear.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index 1e2205ea15c..85449bdda09 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -507,6 +507,7 @@ void
brw_blorp_resolve_color(struct intel_context *intel, struct intel_mipmap_tree *mt)
{
struct brw_context *brw = brw_context(&intel->ctx);
+
brw_blorp_rt_resolve_params params(brw, mt);
brw_blorp_exec(intel, &params);
mt->mcs_state = INTEL_MCS_STATE_RESOLVED;