Users browsing this thread: 1 Guest(s)
Switch BNTX research
#18
Hi gdkchan, good job at trying to unravel this tile addressing on your own!

I came across this thread while googling to see if anyone else had managed to make a BNTX loader yet, and I thought you might like to know that this is a well-documented tiling method called Block Linear tiling, or "BlockLinearGOB" as exposed in the latest release of Noesis. A complete description can be found in the Tegra X1 TRM, which is floating around online and freely accessible on nvidia's developer site. Each GoB (group of bytes) is 512 bytes, and from the looks of it, what your code is doing is effectively trying to compensate for different block heights.

The key bit for BNTX is that you need to respect the texture info's mip0 block height field (it is not always 4/16, some BNTX files explicitly use 0 to force a block height of 1), then you need to mimic the expected GPU behavior of fitting the block height to each mip above mip0. Noesis also has a BNTX loader in its latest release, which mimics the algorithm described in the TRM. So far it seems to load every BNTX I've been able to throw at it, but let me know if you come across anything that fails.

I just made this account here and will probably forget to check back, but feel free to message me if you have any questions!
Reply


Messages In This Thread
Switch BNTX research - by gdkchan - 07-21-2017, 09:59 PM
RE: Switch BNTX research - by Random Talking Bush - 07-22-2017, 09:41 AM
RE: Switch BNTX research - by gdkchan - 07-22-2017, 08:28 PM
RE: Switch BNTX research - by Random Talking Bush - 07-23-2017, 09:06 AM
RE: Switch BNTX research - by gdkchan - 07-23-2017, 11:57 PM
RE: Switch BNTX research - by aboood40091 - 08-18-2017, 12:23 PM
RE: Switch BNTX research - by gdkchan - 08-19-2017, 02:09 PM
RE: Switch BNTX research - by aboood40091 - 09-21-2017, 09:03 PM
RE: Switch BNTX research - by gdkchan - 07-24-2017, 10:22 PM
RE: Switch BNTX research - by KillzXGaming - 07-26-2017, 11:15 AM
RE: Switch BNTX research - by Random Talking Bush - 07-26-2017, 11:39 AM
RE: Switch BNTX research - by KillzXGaming - 07-26-2017, 12:15 PM
RE: Switch BNTX research - by gdkchan - 07-26-2017, 01:10 PM
RE: Switch BNTX research - by gdkchan - 07-27-2017, 10:50 AM
RE: Switch BNTX research - by aboood40091 - 07-26-2017, 03:23 PM
RE: Switch BNTX research - by gdkchan - 07-26-2017, 10:37 PM
RE: Switch BNTX research - by Random Talking Bush - 08-05-2017, 01:48 AM
RE: Switch BNTX research - by gdkchan - 08-05-2017, 08:20 AM
RE: Switch BNTX research - by Rich - 09-19-2017, 09:33 AM

Forum Jump: