replace _mesa_logbase2 with util_logbase2
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
This commit is contained in:
@@ -86,7 +86,7 @@ brw_alloc_reg_set(struct brw_compiler *compiler, int dispatch_width)
|
||||
{
|
||||
const struct gen_device_info *devinfo = compiler->devinfo;
|
||||
int base_reg_count = BRW_MAX_GRF;
|
||||
const int index = _mesa_logbase2(dispatch_width / 8);
|
||||
const int index = util_logbase2(dispatch_width / 8);
|
||||
|
||||
if (dispatch_width > 8 && devinfo->gen >= 7) {
|
||||
/* For IVB+, we don't need the PLN hacks or the even-reg alignment in
|
||||
@@ -423,7 +423,7 @@ public:
|
||||
* for reg_width == 2.
|
||||
*/
|
||||
int reg_width = fs->dispatch_width / 8;
|
||||
rsi = _mesa_logbase2(reg_width);
|
||||
rsi = util_logbase2(reg_width);
|
||||
payload_node_count = ALIGN(fs->first_non_payload_grf, reg_width);
|
||||
|
||||
/* Get payload IP information */
|
||||
|
Reference in New Issue
Block a user