OSDN Git Service

r300g: disable point sprites (again)
authorMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 18:53:17 +0000 (20:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 26 Apr 2010 18:53:17 +0000 (20:53 +0200)
They cause lockups. The users doesn't seem to like them.

src/gallium/drivers/r300/r300_state.c

index e8171e9..b90c99c 100644 (file)
@@ -853,8 +853,11 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
 
     rs->clip_rule = state->scissor ? 0xAAAA : 0xFFFF;
 
+    /* XXX Disable point sprites until we know what's wrong with them. */
+    rs->rs.sprite_coord_enable = 0;
+
     /* Point sprites */
-    if (state->sprite_coord_enable) {
+    if (rs->rs.sprite_coord_enable) {
         rs->stuffing_enable = R300_GB_POINT_STUFF_ENABLE;
        for (i = 0; i < 8; i++) {
            if (state->sprite_coord_enable & (1 << i))