application to confirm texture layout
Here is an app to test the texture layout.
No message means it's ok. Otherwise it spews a lot of errors.
You have to manually set the TILE_HEIGHT, TILE_WIDTH and TILING_PARAM.
TILE_WIDTH == TILE_PITCH in this case because it's 8bpp data.
Use this list (TILING_PARAM) TILE_WIDTHxTILE_HEIGHT:
(0x00) 32x4
(0x10) 64x8
(0x20) 64x16
(0x30) 64x32
(0x40) 64x64
I'm curious to know if anyone has different layouts.
You may need to sudo run it.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903111207w5e6486f5we77c274f9b0708bc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
I forgot to say it isn't a fast program, so be prepared to wait at least a few minutes for every run.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903111209h71135386j57dc89c00c70ed8f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
For all those (probably NV9X users) who gets streaming pile of errors, please set WIDTH to a multiple of TILE_WIDTH and HEIGHT to a multiple of TILE_HEIGHT. And then send the log to me.
@phenriksson (irc name): could you retry with the original program (with WIDTH and HEIGHT adjusted), but with the smallest tile size:
(TILING_PARAM) TILE_WIDTHxTILE_HEIGHT: (0x00) 32x4
(that goes for everyone sending in bug logs).
Maarten.
Quoted 5 lines · Maarten Maathuis
I forgot to say it isn't a fast program, so be prepared to wait at least a few minutes for every run.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903120542t25f3892es5c1b5cbef3439b98-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Update version with a NV90_MODE, please set it according to your card.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903141036g50a76944se64fc217fc7ad1bc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Small update, this time you can just set TILING_PARAM and you're good to go.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903150418l5af43dfcx127e530fb31bdf37-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
New version, with 16bpp and 32bpp tests also. Someone with a NV9X needs to run the new tests, i made a guess about what is happening after the wfb fiasco, so hopefully it's right.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903151518r733fa359i44cf4685b9fdf37f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
I added nv9x_special, which outputs the shift of 128 bytes blocks relative to the normal layout, because it appears that the pattern changes more than once. This has to be run from outside X (needing a lot of memory), it will screw up your console, so be prepared to ssh in. I optimised the searching a bit, but expect the test to run for at least half an hour. You can sent the log to me personally. Don't change any of the parameters for that test.
Maarten.
Quoted 6 lines · Maarten Maathuis
New version, with 16bpp and 32bpp tests also. Someone with a NV9X needs to run the new tests, i made a guess about what is happening after the wfb fiasco, so hopefully it's right.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903160339jdc4bbb1x7067a8c4a145ca07-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
I have all the data i need for NV9X, please note that the test programs haven't been updated with the actual layout yet. So they will give errors on NV9X.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903170207t1bbbd923sfc1b9350b4117c3c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Again reduced to just the 8bpp test, the special test remains to find any deviations from the standard layout.
I added a NV84_MODE to adjust for the layout found by KoalaBR, hopefully it's correct (hint test it ;-)).
At this point i know:
Normal: NV86
NV84: NV84
NV9X: NV92 NV96
So people, chime in and confirm (even if your card is already on the list).
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903171606t357f3c6dmb384067b23cc61a0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
The special test is only if i ask you fail the normal nv50_test.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc0903171612l56aa401fud52cd522ba81e156-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
That came out wrong, the special test is only if the normal test fails or if i ask you to make it.
I will make a faster special test in the forseeable future.
Maarten.
Quoted 11 lines · Maarten Maathuis
Again reduced to just the 8bpp test, the special test remains to find any deviations from the standard layout.
I added a
NV84_MODEto adjust for the layout found by KoalaBR, hopefully it's correct (hint test it ;-)).At this point i know:
Normal: NV86
NV84: NV84
NV9X: NV92 NV96
NV84GL runs without issues with NV84_MODE=1. I'll all also test my NV84 (I know it's been done, but best to make sure!) when I get home.
Ben.
Quoted 8 lines
So people, chime in and confirm (even if your card is already on the list).
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau