[Mesa-dev] [PATCH 5/5] i965: use ASTC5x5 workaround in brw_compute
kevin.rogovin at intel.com
kevin.rogovin at intel.com
Fri Dec 1 17:19:22 UTC 2017
From: Kevin Rogovin <kevin.rogovin at intel.com>
Perform the ASTC5x5 workaround tasks for compute; note that
the function does not do anything and immediately returns
if the bug is not present on the hardware.
Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
---
src/mesa/drivers/dri/i965/brw_compute.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_compute.c b/src/mesa/drivers/dri/i965/brw_compute.c
index 9be7523bab..e338539dc1 100644
--- a/src/mesa/drivers/dri/i965/brw_compute.c
+++ b/src/mesa/drivers/dri/i965/brw_compute.c
@@ -179,6 +179,12 @@ brw_dispatch_compute_common(struct gl_context *ctx)
brw_predraw_resolve_inputs(brw, false);
+ /* if necessary, perform astc5x5 workarounds to make sure any sampler does
+ * not sample sample from a surface using an auxilary buffer within the
+ * same batch of sampling from a surface with an ASTC5x5 format
+ */
+ brw_astc5x5_perform_wa(brw);
+
/* Flush the batch if the batch/state buffers are nearly full. We can
* grow them if needed, but this is not free, so we'd like to avoid it.
*/
--
2.14.2
More information about the mesa-dev
mailing list