mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
intel/blorp: Fix Gfx7 stencil surface state valign
Stencil on Gfx7 has a vertical alignment element of 8, but the largest its surface state can express is 4. Apply the Gfx6 solution of changing the alignment in blorp_surf_retile_w_to_y. Cc: mesa-stable Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12132>
This commit is contained in:
parent
1f62cddaf5
commit
c7bcbc950c
1 changed files with 2 additions and 2 deletions
|
|
@ -1650,8 +1650,8 @@ blorp_surf_retile_w_to_y(const struct isl_device *isl_dev,
|
|||
blorp_surf_fake_interleaved_msaa(isl_dev, info);
|
||||
}
|
||||
|
||||
if (isl_dev->info->ver == 6) {
|
||||
/* Gfx6 stencil buffers have a very large alignment coming in from the
|
||||
if (isl_dev->info->ver == 6 || isl_dev->info->ver == 7) {
|
||||
/* Gfx6-7 stencil buffers have a very large alignment coming in from the
|
||||
* miptree. It's out-of-bounds for what the surface state can handle.
|
||||
* Since we have a single layer and level, it doesn't really matter as
|
||||
* long as we don't pass a bogus value into isl_surf_fill_state().
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue