r600g: don't use register mask for DB_RENDER_CONTROL
authorMarek Olšák <maraeo@gmail.com>
Sat, 28 Jan 2012 05:07:09 +0000 (06:07 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 31 Jan 2012 01:17:32 +0000 (02:17 +0100)
We don't set the other bits anywhere else except the other DSA states,
which are mutually-exclusive with this one.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c

index 91d894da2a7b7a845817282c778c745a668a2241..5aaf235fa4cc538192bad230071403fdd2071e99 100644 (file)
@@ -2492,9 +2492,7 @@ void *evergreen_create_db_flush_dsa(struct r600_pipe_context *rctx)
                                S_028000_DEPTH_COPY_ENABLE(1) |
                                S_028000_STENCIL_COPY_ENABLE(1) |
                                S_028000_COPY_CENTROID(1),
-                               S_028000_DEPTH_COPY_ENABLE(1) |
-                               S_028000_STENCIL_COPY_ENABLE(1) |
-                               S_028000_COPY_CENTROID(1), NULL, 0);
+                               0xFFFFFFFF, NULL, 0);
        return rstate;
 }
 
index 73d1c33c4911e4d69646e0c474740c6acebda1ba..d786a2c9b9bf90e4ddf8faecd9cf5236f17bc59c 100644 (file)
@@ -2295,9 +2295,7 @@ void *r600_create_db_flush_dsa(struct r600_pipe_context *rctx)
                                S_028D0C_DEPTH_COPY_ENABLE(1) |
                                S_028D0C_STENCIL_COPY_ENABLE(1) |
                                S_028D0C_COPY_CENTROID(1),
-                               S_028D0C_DEPTH_COPY_ENABLE(1) |
-                               S_028D0C_STENCIL_COPY_ENABLE(1) |
-                               S_028D0C_COPY_CENTROID(1), NULL, 0);
+                               0xFFFFFFFF, NULL, 0);
        return rstate;
 }