mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
i965/skl: Add fast clear resolve rect multipliers for SKL
SKL updates the resolve rectangle scaling factors again. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
051bfe4d52
commit
d235c5afde
1 changed files with 5 additions and 2 deletions
|
|
@ -643,11 +643,14 @@ get_resolve_rect(struct brw_context *brw,
|
|||
* The scaledown factors in the table that follows are related to the
|
||||
* alignment size returned by intel_get_non_msrt_mcs_alignment() by a
|
||||
* multiplier. For IVB and HSW, we divide by two, for BDW we multiply
|
||||
* by 8 and 16.
|
||||
* by 8 and 16 and 8 and 8 for SKL.
|
||||
*/
|
||||
|
||||
intel_get_non_msrt_mcs_alignment(brw, mt, &x_align, &y_align);
|
||||
if (brw->gen >= 8) {
|
||||
if (brw->gen >= 9) {
|
||||
x_scaledown = x_align * 8;
|
||||
y_scaledown = y_align * 8;
|
||||
} else if (brw->gen >= 8) {
|
||||
x_scaledown = x_align * 8;
|
||||
y_scaledown = y_align * 16;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue