ac/llvm: add support for texturing with clamped LOD
This is a requirement for the shaderResourceMinLod feature which allows to clamp LOD. This uses all image_sample_*_cl variants. All dEQP-VK.glsl.texture_functions.texture*clamp.* pass. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4989>
This commit is contained in:

committed by
Marge Bot

parent
aaf5706aa3
commit
0d63a1a84d
@@ -561,6 +561,7 @@ struct ac_image_args {
|
||||
LLVMValueRef derivs[6];
|
||||
LLVMValueRef coords[4];
|
||||
LLVMValueRef lod; // also used by ac_image_get_resinfo
|
||||
LLVMValueRef min_lod;
|
||||
};
|
||||
|
||||
LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx,
|
||||
|
Reference in New Issue
Block a user