LLVM complained about passing an i32 to a float clamp.
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Fixes:
0f9e32519bb "ac/nir: clamp shadow texture comparison value on VI"
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
/* Pack depth comparison value */
if (instr->is_shadow && comparator) {
- LLVMValueRef z = llvm_extract_elem(&ctx->ac, comparator, 0);
+ LLVMValueRef z = to_float(&ctx->ac,
+ llvm_extract_elem(&ctx->ac, comparator, 0));
/* TC-compatible HTILE promotes Z16 and Z24 to Z32_FLOAT,
* so the depth comparison value isn't clamped for Z16 and