<div dir="ltr">I would rather not... Those asserts exist precisely to prevent someone from doing a blorp copy with HiZ enabled when it's not actually supported. The right thing to do is to set aux_usage to ISL_AUX_USAGE_NONE if you want blorp to ignore aux.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 11, 2017 at 5:54 PM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Prevent assert failures that would occur in the next patch. BLORP<br>
ignores this flag internally, so no protections are lost here.<br>
<br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
src/intel/blorp/blorp_blit.c | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c<br>
index 1cbd9403c9..aa389dbcc1 100644<br>
--- a/src/intel/blorp/blorp_blit.c<br>
+++ b/src/intel/blorp/blorp_blit.c<br>
@@ -2291,9 +2291,11 @@ blorp_copy(struct blorp_batch *batch,<br>
isl_format_get_layout(params.<wbr>dst.surf.format);<br>
<br>
assert(params.src.aux_usage == ISL_AUX_USAGE_NONE ||<br>
+ params.src.aux_usage == ISL_AUX_USAGE_HIZ ||<br>
params.src.aux_usage == ISL_AUX_USAGE_MCS ||<br>
params.src.aux_usage == ISL_AUX_USAGE_CCS_E);<br>
assert(params.dst.aux_usage == ISL_AUX_USAGE_NONE ||<br>
+ params.dst.aux_usage == ISL_AUX_USAGE_HIZ ||<br>
params.dst.aux_usage == ISL_AUX_USAGE_MCS ||<br>
params.dst.aux_usage == ISL_AUX_USAGE_CCS_E);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>