[Mesa-dev] [PATCH] [rfc] r600: set vpm bit for loop start clause
Dave Airlie
airlied at gmail.com
Fri Aug 3 03:10:24 UTC 2018
From: Dave Airlie <airlied at redhat.com>
This fixes some hangs with the arb_shader_image_load_store-atomicity tests
on evergreen/cayman GPUs.
I'm not 100% sure why (VPM hurts my brain), I'm running some piglit
runs to see if it has any bad side effects.
---
src/gallium/drivers/r600/r600_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 2229dc8fab3..1341bf2c48c 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -10587,7 +10587,7 @@ static int tgsi_bgnloop(struct r600_shader_ctx *ctx)
/* LOOP_START_DX10 ignores the LOOP_CONFIG* registers, so it is not
* limited to 4096 iterations, like the other LOOP_* instructions. */
r600_bytecode_add_cfinst(ctx->bc, CF_OP_LOOP_START_DX10);
-
+ ctx->bc->cf_last->vpm = 1;
fc_pushlevel(ctx, FC_LOOP);
/* check stack depth */
--
2.17.1
More information about the mesa-dev
mailing list