i965: Fix BRW_MEMZONE_LOW_4G heap size.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 27 Apr 2019 00:09:11 +0000 (17:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 7 May 2019 22:45:56 +0000 (15:45 -0700)
commit15f134c62853ed6679435a9e4ae40e3308fc7453
treecb419b1d79b15c97ec26f42afa89406b39ee948a
parente8c74a1e1657f6a03e038fb72b50bfd994771850
i965: Fix BRW_MEMZONE_LOW_4G heap size.

The STATE_BASE_ADDRESS "Size" fields can only hold 0xfffff in pages,
and 0xfffff * 4096 = 4294963200, which is 1 page shy of 4GB.

So we can't use the top page.

Fixes: 01058a55229 i965: Add virtual memory allocator infrastructure to brw_bufmgr.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_bufmgr.c