diff --git a/src/freedreno/common/freedreno_dev_info.h b/src/freedreno/common/freedreno_dev_info.h index a426c0b3d82..a1df1c3abc0 100644 --- a/src/freedreno/common/freedreno_dev_info.h +++ b/src/freedreno/common/freedreno_dev_info.h @@ -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; }; diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py index 5dd267feab2..9729585af2f 100644 --- a/src/freedreno/common/freedreno_devices.py +++ b/src/freedreno/common/freedreno_devices.py @@ -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(