freedreno: Add HW bin scaling feature

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36475>
This commit is contained in:
Connor Abbott 2025-01-23 16:38:42 -05:00 committed by Marge Bot
parent 09a80e04d6
commit cf7a52d2a6
2 changed files with 8 additions and 0 deletions

View file

@ -369,6 +369,12 @@ struct fd_dev_info {
/* On a750 the control register layout is rearranged. */
bool new_control_regs;
/* a740+ support a per-view list of bin scales in GRAS which can be used
* to modify the viewport, rather than manually patching it in the
* driver.
*/
bool has_hw_bin_scaling;
} a7xx;
};

View file

@ -944,6 +944,7 @@ a7xx_gen2 = A7XXProps(
has_primitive_shading_rate = True,
reading_shading_rate_requires_smask_quirk = True,
has_ray_intersection = True,
has_hw_bin_scaling = True,
)
a7xx_gen3 = A7XXProps(
@ -971,6 +972,7 @@ a7xx_gen3 = A7XXProps(
has_alias_rt = True,
has_abs_bin_mask = True,
new_control_regs = True,
has_hw_bin_scaling = True,
)
a730_magic_regs = dict(