diff options
author | Dave Airlie <[email protected]> | 2018-01-11 02:10:23 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-01-12 00:41:55 +0000 |
commit | e37db93246d8251e2c0b366c08f23c9de756208e (patch) | |
tree | 93d2cb00afe06e99321b5fefdd26c8bdcc564b0c | |
parent | aca3b647bedd581c6d0b428f9f5d58a65048f869 (diff) |
radv: trim buffer load result (fixes dota2)
Running dota2 since the below commit crashes with an llvm assert.
Trim the vector like the other user. This possible could also be
avoided by not padding inside the load vec3->vec4.
Fixes: 41c36c4549 (amd/common: use ac_build_buffer_load() for emitting UBO loads)
Reviewed-by: Samuel Pitoiset <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 6ab93b36783..0e1fefede56 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2607,7 +2607,7 @@ static LLVMValueRef visit_load_ubo_buffer(struct ac_nir_context *ctx, ret = ac_build_buffer_load(&ctx->ac, rsrc, num_components, NULL, offset, NULL, 0, false, false, true, true); - + ret = trim_vector(&ctx->ac, ret, num_components); return LLVMBuildBitCast(ctx->ac.builder, ret, get_def_type(ctx, &instr->dest.ssa), ""); } |