radeonsi: use the writeonly LLVM attribute
authorMarek Olšák <marek.olsak@amd.com>
Fri, 24 Feb 2017 01:14:52 +0000 (02:14 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 3 Mar 2017 14:29:30 +0000 (15:29 +0100)
src/gallium/drivers/radeonsi/si_shader.c

index adf2b6065e80968feb5fb913087e33b19529c350..c9dab8066cd7cdee37cd078365453a0dd7f37086 100644 (file)
@@ -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);
        }
 }