From 684339827c357801ea80cd19367124236dd2fc92 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 24 Feb 2017 02:14:52 +0100 Subject: radeonsi: use the writeonly LLVM attribute --- src/gallium/drivers/radeonsi/si_shader.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/radeonsi/si_shader.c') 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); } } -- cgit v1.2.3