ac/nir: Fix store_scratch with a non-full writemask
[mesa.git] / src / amd / common / ac_llvm_build.h
index 082201fb048fd6af60ac3e382fcb6b8b2d3ddd43..6848a7ca082f6cf733be6079363bbfd15b0ffd7b 100644 (file)
@@ -190,6 +190,13 @@ LLVMValueRef
 ac_build_gather_values(struct ac_llvm_context *ctx,
                       LLVMValueRef *values,
                       unsigned value_count);
+
+LLVMValueRef
+ac_extract_components(struct ac_llvm_context *ctx,
+                     LLVMValueRef value,
+                     unsigned start,
+                     unsigned channels);
+
 LLVMValueRef ac_build_expand_to_vec4(struct ac_llvm_context *ctx,
                                     LLVMValueRef value,
                                     unsigned num_channels);