mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
e42a8a5b92
commit
948300da27
1 changed files with 1 additions and 1 deletions
|
|
@ -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, ", ");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue