Scrooge, on Jan 7 2011, 09:25 PM, said:
Hello,
I have a ATI X1900, and I want to set the option r_pr_ati_nodepthoffset manually,
because this looks like what I need. (freeze when a sprite come in sight)
Unfortunately, setting this option, followed by "restartvid" doesn't seem to work, and the flag is reset after the restart : (eduke32.log)
EDuke32 2.0.0devel 20100727
...
Uninitializing DirectInput...
Executing "settings.cfg"
Disabling desktop composition...
Setting video mode 1280x800 (32-bit fullscreen)
Enabling ATI FBO color attachment workaround.
OpenGL Information:
Version: 2.1.8545 Release
Vendor: ATI Technologies Inc.
Renderer: ATI MOBILITY RADEON X1900
......
Version: 2.1.8545 Release
Vendor: ATI Technologies Inc.
Renderer: ATI MOBILITY RADEON X1900
Maximum anisotropy: 16.0
BGRA textures: supported
Non-power-of-2 textures: supported
Texure compression: supported
Clamp-to-edge: supported
Multisampling: not supported
Nvidia multisample hint: not supported
ARBfp fragment programs: supported
Depth textures: supported
Shadow textures: supported
Frame Buffer Objects: supported
Rectangle textures: supported
Multitexturing: supported
env_combine: supported
Vertex Buffer Objects: supported
Shader Model 4: not supported
Occlusion queries: supported
GLSL: supported
I've tried on build 1750 / 1753, the log contains the glinfo.
Is there another way to force r_pr_ati_nodepthoffset to 1 ?
Thank you for your help !
Whoo ! Found the problem myself in the code ,1759 smapshot
sdllayer. c (1138) and winlayer.c (2854):
if (!Bstrncmp(glinfo.renderer,"Radeon X1", 9))
{
r_vbos = 0;
#ifdef POLYMER
pr_ati_nodepthoffset = 1;
initprintf("Enabling ATI R520 polygon offset workaround.\n");
#endif
}
==> Problem is, the test in glinfo.renderer fails because it expects somthing starting with "Radeon X1.." so that
my Mobility x1900 defined as ATI MOBILITY RADEON X1900 fail the test.
I think the ATI model test should be smarter here, since it leads for some perfectly good cards to be inplayable because they fail to be detected properly, such as (seen in own driver .inf installation file):
"ATI MOBILITY RADEON X1600"
"ATI MOBILITY RADEON X1700"
...
but also desktop ones that (may ) be OK, that have vendor-specific strings:
"ATI Radeon X1050 "
"ATI Radeon X1550 Series"
"ASUS Radeon X1550 Series "
....such as [whatever] Radeon X[NNNN] ..."
indeed, in my Catalyst 10.2 Legacy driver (latest available for pre-HD boards)
the only cards that could have worked are very few...
I confirmed this by two means :
- hacking the test string in the excutable
- Reinstalling my driver after modifying the string in the driver Inf into something "Radeon X1900 MOBILITY"
And no, I was too lazy to install VS2010, SVN and recompiling the thingy, sorry...
So, after that, the pr_ati_nodepthoffset was indeed set at Polymer startup, and... the game works well, if not very fast !!
Enabling ATI FBO color attachment workaround.
Enabling ATI R520 polygon offset workaround.
OpenGL Information:
Version: 2.1.8545 Release
Vendor: ATI Technologies Inc.
Renderer: Radeon X1900 MOBILITY