[Mesa-dev] [PATCH 5/8] i965: Fixed the CopyImageSubData for ETC2 on Gen < 8
Eleni Maria Stea
estea at igalia.com
Mon Nov 19 08:54:09 UTC 2018
CopyImageSubData couldn't work for the first draw call because
intel_update_decompressed_shadow was called during the rendering. Moved
the intel_update_decompressed_shadow in brw_predraw_resolve_inputs to
fix this problem.
---
src/mesa/drivers/dri/i965/brw_draw.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 8536c04010..b331561f36 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -559,6 +559,9 @@ brw_predraw_resolve_inputs(struct brw_context *brw, bool rendering,
tex_obj->mt->format == MESA_FORMAT_S_UINT8) {
intel_update_r8stencil(brw, tex_obj->mt);
}
+
+ if (tex_obj->mt->needs_fake_etc && tex_obj->mt->shadow_needs_update)
+ intel_update_decompressed_shadow(brw, tex_obj->mt);
}
/* Resolve color for each active shader image. */
--
2.19.0
More information about the mesa-dev
mailing list