[Mesa-dev] [v4 01/11] i965/blorp: Set full resolve for lossless compressed
Topi Pohjolainen
topi.pohjolainen at intel.com
Thu Apr 21 11:58:56 UTC 2016
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
index 41ff2a5..b1da935 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp
@@ -217,7 +217,10 @@ brw_blorp_rt_resolve_params::brw_blorp_rt_resolve_params(
brw_get_resolve_rect(brw, mt, &x0, &y0, &x1, &y1);
- fast_clear_op = GEN7_PS_RENDER_TARGET_RESOLVE_ENABLE;
+ if (intel_miptree_is_lossless_compressed(brw, mt))
+ fast_clear_op = GEN9_PS_RENDER_TARGET_RESOLVE_FULL;
+ else
+ fast_clear_op = GEN7_PS_RENDER_TARGET_RESOLVE_ENABLE;
/* Note: there is no need to initialize push constants because it doesn't
* matter what data gets dispatched to the render target. However, we must
--
2.5.5
More information about the mesa-dev
mailing list