[Mesa-dev] [PATCH v2 1/2] amd/addrlib: Use correct tile index for S8 on SI.

Marek Olšák maraeo at gmail.com
Mon Jun 18 16:08:04 UTC 2018


Do you need this if you set compressZ = true for stencil?

Marek

On Mon, Jun 18, 2018 at 11:00 AM, Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl
> wrote:

> Tile index 3 is "16 bpp depth PRT (non-MSAA), don't support
> uncompressed depth" while tile index 0 is "non-AA compressed depth
> or any stencil" per the comments at the top of the file.
>
> On my Cape Verde this caused assertions due to the bank height of
> tile index 3 being too low. (2 while needs to be aligned to 4).
>
> AMDVLK probably did not hit this because it always sets compressZ
> by default.
>
> v2: Removed some garbage pastes (Ilia Mirkin)
>
> CC: Marek Olšák <marek.olsak at amd.com>
> ---
>  src/amd/addrlib/r800/siaddrlib.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/addrlib/r800/siaddrlib.cpp b/src/amd/addrlib/r800/
> siaddrlib.cpp
> index bc009f5aff0..79ae940b4c8 100644
> --- a/src/amd/addrlib/r800/siaddrlib.cpp
> +++ b/src/amd/addrlib/r800/siaddrlib.cpp
> @@ -2105,7 +2105,7 @@ VOID SiLib::HwlSetupTileInfo(
>                  }
>                  else // unCompressZ
>                  {
> -                    index = 3;
> +                    index = 0;
>                  }
>              }
>              else //non PRT & non Depth & non Stencil
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180618/28588ce6/attachment-0001.html>


More information about the mesa-dev mailing list