I am getting this:
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.
when trying to start the game 0ad or douze map with sauerbraten (with shaders enabled).
dmesg shows this after 0ad crash:
[ 204.087282] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 4190208 have 3145728) !
[ 204.087294] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (1024 4 0 1023)
[ 204.087300] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
and this with sauerbraten:
[ 1144.213905] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 83826965 dwords have 112640 dwords
[ 1144.213915] [drm:r100_cs_track_check] *ERROR* Max indices 16765393
[ 1144.213921] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
I am using current mesa git with:
GL_RENDERER = Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL DRI2
Created attachment 34797 [details]
Debug patch or scissor bug.
Here is 2 different error messages so 2 different bugs. It would be better if there was only one bug per report.
0ad problem is that mesa sets wrong height for rendering area (1023 instead 768). Could you apply the attached patch to mesa and run 0ad with RADEON_DEBUG=all ./0ad &> debug.log
*** Bug 27446 has been marked as a duplicate of this bug. ***
> 0ad problem is that mesa sets wrong height for rendering area (1023 instead
> 768). Could you apply the attached patch to mesa and run 0ad with
> RADEON_DEBUG=all ./0ad &> debug.log
debug file created as requested with patch (note: compressed: 3MB, uncompressed: 152MB):
sauerbraten bugs filed at:
Could you possibly test this kernel patch:
And please let me know if it fixes 0ad for you.
You might also try the Gallium driver instead in case the patch doesn't help.
(In reply to comment #5)
> Could you possibly test this kernel patch:
> And please let me know if it fixes 0ad for you.
> You might also try the Gallium driver instead in case the patch doesn't help.
It's still the same with the patch (applied against 188.8.131.52).
Note, however, that (with or without the patch) now the game stucks where previously crashed and I have to kill -9 it. There is nothing interesting in dmesg.
(r300g is working since a month)
This is fixed now. Note however that with r300c unless you disable shadows the game runs at 20 second per frame. Works fast with r300g.