Created attachment 38914 [details]
In the game Zero Ballistics, the tank model is not visible.
It seems to be working fine on llvmpipe.
Not a regression as far as I know, I just haven't reported it before as the developers website was offline and the future of the game was unclear.
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- GPU: RV570
-- Model: Asus EAX1950Pro 256MB
-- Display connector: DVI
-- xf86-video-ati: e9928fe036e9382fd7bc353f3f05531445f08977
-- xserver: 18.104.22.1684 (1.9.0 RC 5)
-- mesa: 96da9b28c838af00f15d6c0a5973857019d3aecc
-- drm: 23287f05cf2443ddf9e028e29beb5bd30979c6cf
-- kernel: 22.214.171.124
Created attachment 38915 [details]
Tank is visible with RADEON_NO_TCL=1
Ok, try this: open the file mesa/src/gallium/drivers/r300/r300_vs.c in a text editor, scroll down to line 214, which should look like this:
compiler.Base.max_alu_insts = r300->screen->caps.is_r500 ? 1024 : 256;
Change 1024 to 95, recompile and test. If the part of the tank that was misrendering turns black, then stop and report the number you used, otherwise subtract 5 from the new number and repeat until the misrendering becomes black. If you get down to 60 and nothing has changed then you can stop,you don't need to go all the way to zero.
Tried it all the way down to 60, no sign of the tank.
If a vertex shader fails to compile, nothing is rendered, because all vertices become (0,0,0,1) and a triangle with such vertices has no area.
I took a look at this game, and I can't tell what the problem is. Can you post screenshots of the current behavior and the expected behavior?
Created attachment 40125 [details]
Screenshot comparing normal vs RADEON_NO_TCL
(In reply to comment #6)
> I took a look at this game, and I can't tell what the problem is. Can you post
> screenshots of the current behavior and the expected behavior?
The model representing the player (the tank) is not rendered. The game uses a first person view by default, but you can press F2 to switch to third person, which should make the problem obvious.
I have attached a screenshot comparing the problem with a run using RADEON_NO_TCL=1 where the tank is visible.
Commit 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 in Mesa master should fix some missing objects. Could you test the game again with current git?
(In reply to comment #8)
> Commit 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 in Mesa master should fix some
> missing objects. Could you test the game again with current git?
Yep, it's fixed. Wohoo! :)