diff options
author | Marek Olšák <[email protected]> | 2017-02-24 02:14:52 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-03 15:29:30 +0100 |
commit | 684339827c357801ea80cd19367124236dd2fc92 (patch) | |
tree | c624682d79f22ff8f372ed815cd7fef475d21dd2 /src/gallium | |
parent | 8cfdbba6c7ca9d2e597b27ec14c3a498353f1d5e (diff) |
radeonsi: use the writeonly LLVM attribute
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index adf2b6065e8..c9dab8066cd 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -3727,7 +3727,8 @@ static void store_emit_buffer( lp_build_intrinsic( builder, intrinsic_name, emit_data->dst_type, - emit_data->args, emit_data->arg_count, 0); + emit_data->args, emit_data->arg_count, + LP_FUNC_ATTR_WRITEONLY); } } @@ -3785,7 +3786,8 @@ static void store_emit( emit_data->output[emit_data->chan] = lp_build_intrinsic( builder, "llvm.amdgcn.buffer.store.format.v4f32", emit_data->dst_type, emit_data->args, - emit_data->arg_count, 0); + emit_data->arg_count, + LP_FUNC_ATTR_WRITEONLY); } else { get_image_intr_name("llvm.amdgcn.image.store", LLVMTypeOf(emit_data->args[0]), /* vdata */ @@ -3796,7 +3798,8 @@ static void store_emit( emit_data->output[emit_data->chan] = lp_build_intrinsic( builder, intrinsic_name, emit_data->dst_type, - emit_data->args, emit_data->arg_count, 0); + emit_data->args, emit_data->arg_count, + LP_FUNC_ATTR_WRITEONLY); } } |