r300: I have no idea why this was forced on, but it seems to work fine when
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 19:30:59 +0000 (19:30 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 9 May 2007 19:30:59 +0000 (19:30 +0000)
restored to the previous behaviour.

src/mesa/drivers/dri/r300/radeon_span.c

index 5003f7cbc87b96bf399c48fe36e0be0e3c8f4687..5f1ff7ade79ab3fc825c2c20fe9ba0d07c716b0d 100644 (file)
@@ -123,7 +123,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 static GLuint radeon_mba_z32(const driRenderbuffer * drb, GLint x, GLint y)
 {
        GLuint pitch = drb->pitch;
-       if (1 /*|| drb->depthHasSurface */ ) {
+       if (drb->depthHasSurface) {
                return 4 * (x + y * pitch);
        } else {
                GLuint ba, address = 0; /* a[0..1] = 0           */
@@ -147,7 +147,7 @@ static INLINE GLuint
 radeon_mba_z16(const driRenderbuffer * drb, GLint x, GLint y)
 {
        GLuint pitch = drb->pitch;
-       if (1 /*|| drb->depthHasSurface */ ) {
+       if (drb->depthHasSurface) {
                return 2 * (x + y * pitch);
        } else {
                GLuint ba, address = 0; /* a[0]    = 0           */