You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try the Dota 2 Reborn beta, there are constantly these errors:
Mesa: User error: GL_INVALID_VALUE in glScissor
Mesa: User error: GL_INVALID_OPERATION in glUseProgramStages(program not linked)
Looks like we use a few extensions that are not supported by the radeonsi driver yet. We could do a better job of detecting that and failing to start, but I would let the Mesa people know about this regardless.
glScissor returning INVALID_VALUE means that negative width/height are being passed in. Mesa should support ARB_sso on all drivers, but it's one of the less-tested extensions (or rather, one of the ones with the biggest test surface), so the glUseProgramStages thing could happen for a million different reasons.
FWIW this is the code that generates the sso error. I'm in the process of getting the game, so I can't tell if these conditions are actually met and it's correctly returning that error or not.
/* Section 2.11.4 (Program Pipeline Objects) of the OpenGL 4.1 spec
* says:
*
* "If the program object named by program was linked without the
* PROGRAM_SEPARABLE parameter set, or was not linked successfully,
* the error INVALID_OPERATION is generated and the corresponding
* shader stages in the pipeline program pipeline object are not
* modified."
*/
if (!shProg->LinkStatus) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glUseProgramStages(program not linked)");
return;
}
However the glScissor errors are pretty unambigiously Dota 2 Reborn's bad. You can see this yourself in the trace... just a few examples below, but there are tons:
One thing to note is that the radeonsi driver doesn't support ARB_viewport_arrays, and you're querying MAX_VIEWPORTS and getting 0 back, so perhaps you're looping over # of viewports somewhere and so you end up not setting anything? Just a guess based on an observation airlied made on IRC.
I've checked in a fix for the GL_ARB_viewport_array issue and confirmed it can cause uninitialized scissor values (as well as viewport values). The fix will be in the next update.
Activity
sarnex commentedon Jun 23, 2015
The menu graphics are also very glitchy, sometimes they don't appear or are flickering. I don't know if it's related.
Plagman commentedon Jun 23, 2015
Looks like we use a few extensions that are not supported by the radeonsi driver yet. We could do a better job of detecting that and failing to start, but I would let the Mesa people know about this regardless.
imirkin commentedon Jun 23, 2015
glScissor returning INVALID_VALUE means that negative width/height are being passed in. Mesa should support ARB_sso on all drivers, but it's one of the less-tested extensions (or rather, one of the ones with the biggest test surface), so the glUseProgramStages thing could happen for a million different reasons.
imirkin commentedon Jun 23, 2015
FWIW this is the code that generates the sso error. I'm in the process of getting the game, so I can't tell if these conditions are actually met and it's correctly returning that error or not.
Plagman commentedon Jun 23, 2015
I don't have a setup that can reproduce this, but if you find any problems with the engine's use of ARB_sso let us know!
sarnex commentedon Jun 23, 2015
I've created an apitrace for anyone interested
https://idontevenlift.no-ip.org/dota2.trace.xz
Edit: Here is a better trace with a Mesa bug fixed
https://idontevenlift.no-ip.org/dota2_patched.trace.xz
Thanks,
sarnex
imirkin commentedon Jun 23, 2015
OK, so the sso failures were mesa's bad. Patch available at http://patchwork.freedesktop.org/patch/52603/ . Will merge soonish unless people point out some issue.
However the glScissor errors are pretty unambigiously Dota 2 Reborn's bad. You can see this yourself in the trace... just a few examples below, but there are tons:
These happen a ton in the trace, and either width or height being negative is illegal in GL.
imirkin commentedon Jun 23, 2015
One thing to note is that the radeonsi driver doesn't support ARB_viewport_arrays, and you're querying MAX_VIEWPORTS and getting 0 back, so perhaps you're looping over # of viewports somewhere and so you end up not setting anything? Just a guess based on an observation airlied made on IRC.
gdrewb-valve commentedon Jun 23, 2015
Yes, the viewport array issue is exactly what you describe, we are not checking for the presence of the extension.
danginsburg commentedon Jun 23, 2015
I've checked in a fix for the GL_ARB_viewport_array issue and confirmed it can cause uninitialized scissor values (as well as viewport values). The fix will be in the next update.
gdrewb-valve commentedon Jun 24, 2015
The viewport errors should be resolved in the 6/25 update.