mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
freedreno/cffdec: When .mergedregs is set, don't count half regs.
This matches what ir3.c does in the mergedregs case: just count max full reg used. This flag is unset so far, but will be soon and keeps our output comparable between blob and freedreno. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6323>
This commit is contained in:
parent
803ec06b1b
commit
ce335dcb19
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ static void print_reg_stats(struct disasm_ctx *ctx)
|
|||
* assigned to shader:
|
||||
*/
|
||||
fullreg = (fullreg + 3) / 4;
|
||||
halfreg = (halfreg + 3) / 4;
|
||||
halfreg = ctx->regs.used.mergedregs ? 0 : (halfreg + 3) / 4;
|
||||
|
||||
// Note this count of instructions includes rptN, which matches
|
||||
// up to how mesa prints this:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue