The BSpec states that for IVB, VLVT, and HSW, the aligment for the non-msrt clear rectangle must be doubled. Commit 9a1a67b applied the workaround to Haswell GT3. Commit 8b659ce expanded the workaround to all Haswell variants. This commit expands it to all Gen7 hardware, as required by the BSpec.
No Piglit regressions on Ivybridge 0x0166. No fixes either. I know no Ivybridge nor Baytrail bug related to this workaround. However, the BSpec says the extra alignment is required, so let's do it. CC: "9.2, 10.0" <mesa-sta...@lists.freedesktop.org> CC: Anuj Phogat <anuj.pho...@gmail.com> CC: Paul Berry <stereotype...@gmail.com> Signed-off-by: Chad Versace <chad.vers...@linux.intel.com> --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 3f096b5..e248ebf 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -265,7 +265,7 @@ brw_blorp_clear_params::brw_blorp_clear_params(struct brw_context *brw, x_align *= 16; y_align *= 32; - if (brw->is_haswell) { + if (brw->gen == 7) { /* From BSpec: 3D-Media-GPGPU Engine > 3D Pipeline > Pixel > Pixel * Backend > MCS Buffer for Render Target(s) [DevIVB+] > Table "Color * Clear of Non-MultiSampled Render Target Restrictions": @@ -274,10 +274,6 @@ brw_blorp_clear_params::brw_blorp_clear_params(struct brw_context *brw, * the number of pixels in the table shown below... x_align, * y_align values computed above are the relevant entries in the * referred table. - * - * We apply the workaround to only Haswell because (a) we suspect that - * is the only hardware where it is actually required and (b) we - * haven't yet validated the workaround for the other hardware. */ x0 = ROUND_DOWN_TO(x0, 2 * x_align); y0 = ROUND_DOWN_TO(y0, 2 * y_align); -- 1.8.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev