summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-23 18:14:32 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-23 18:34:11 +0200
commit53ee80d9007db2dfdfc45d9ff8bfa70d961b8a8f (patch)
tree93f45fa80429c98c52f2beb1b0cdabcf48f70e1b
parentd179ee233d42ea5bc11e7f8514634af9a7038669 (diff)
radeonsi: add an assertion that only two-dimensional constant references are used
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index f02fc9e9ba..c445c49d2a 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1851,6 +1851,7 @@ static LLVMValueRef fetch_constant(
return lp_build_gather_values(&ctx->gallivm, values, 4);
}
+ assert(reg->Register.Dimension);
buf = reg->Register.Dimension ? reg->Dimension.Index : 0;
idx = reg->Register.Index * 4 + swizzle;