[Bug 49817] radeon: The kernel rejected CS when running shader example from SFML library

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 4 10:18:14 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49817

Cédric Legrand <legrand.cedric.01 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #5 from Cédric Legrand <legrand.cedric.01 at gmail.com> 2012-07-04 10:18:14 PDT ---
The bug is still present for me when opening two SFML windows, but dmesg output
changed :

radeon 0000:01:00.0: r600_check_texture_resource:1641 tex base offset
(0x11f7000, 0x2000, 4) invalid
[drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !

* uname -a
Linux perfection 3.4.4-gentoo #2 SMP Tue Jun 26 14:30:57 CEST 2012 x86_64
Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz GenuineIntel GNU/Linux

*glxinfo
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV710
OpenGL version string: 2.1 Mesa 8.1-devel (git-f34764e)
OpenGL shading language version string: 1.30

*libdrm, mesa, xf86-video-ati from yesterday's GIT

*Sample of code to reproduce the bug

###############################################################
#include <SFML/Graphics.hpp>

int main() {
    sf::RenderWindow Bug(sf::VideoMode(800, 600), "SFML bugging window");
    sf::RenderWindow App(sf::VideoMode(800, 600), "SFML window");

    sf::Texture texture;
    if (!texture.loadFromFile("cb.bmp"))
        return EXIT_FAILURE;
    sf::Sprite sprite(texture);

    sf::Texture texture2;
    if (!texture2.loadFromFile("cb.bmp"))
        return EXIT_FAILURE;
    sf::Sprite sprite2;
    sprite2.setTexture(texture2);

    while (Bug.isOpen() || App.isOpen()) {
        sf::Event event;
        sf::Event event2;

        while (Bug.pollEvent(event2)) {
            if(event2.type == sf::Event::Closed)
                Bug.close();
        }
        while (App.pollEvent(event)) {
            if(event.type == sf::Event::Closed)
                App.close();
        }

        Bug.clear();
        App.clear();

        Bug.draw(sprite2);
        App.draw(sprite);

        Bug.display();
        App.display();
    }
    return EXIT_SUCCESS;
}
####################################################################

Opening the windows in different threads works.

Many thanks for your work.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list