pan/mdg: Use util_logbase2 instead of C99 log2

log2 operates on double, we only need the integer util/ function.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15250>
This commit is contained in:
Icecream95 2021-06-19 15:01:15 +12:00 committed by Alyssa Rosenzweig
parent e42a8a5b92
commit 948300da27

View file

@ -870,7 +870,7 @@ print_vector_field(disassemble_context *ctx, FILE *fp, const char *name,
/* Mask out unused components based on the writemask, but don't mask out
* components that are used for interlane instructions like fdot3. */
uint8_t src_mask =
rep ? expand_writemask(mask_of(rep), log2(128 / bits_for_mode(mode))) : mask;
rep ? expand_writemask(mask_of(rep), util_logbase2(128 / bits_for_mode(mode))) : mask;
fprintf(fp, ", ");