i965g: remove references to brw_surface_bo()
authorKeith Whitwell <keithw@vmware.com>
Fri, 6 Nov 2009 13:41:52 +0000 (13:41 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 6 Nov 2009 13:41:52 +0000 (13:41 +0000)
src/gallium/drivers/i965/brw_misc_state.c
src/gallium/drivers/i965/brw_screen.h

index 5ee87bcac0807223c57f00dc6fa65d24bf58cd59..4dd73636fd1b5d856c40b5b169eb05fbe106cb2a 100644 (file)
@@ -231,7 +231,7 @@ static int prepare_depthbuffer(struct brw_context *brw)
    struct pipe_surface *zsbuf = brw->curr.fb.zsbuf;
 
    if (zsbuf)
-      brw_add_validated_bo(brw, brw_surface_bo(zsbuf));
+      brw_add_validated_bo(brw, brw_surface(zsbuf)->bo);
 
    return 0;
 }
@@ -278,8 +278,8 @@ static int emit_depthbuffer(struct brw_context *brw)
         return PIPE_ERROR_BAD_INPUT;
       }
 
-      bo = brw_surface_bo(surface);
-      pitch = brw_surface_pitch(surface);
+      bo = brw_surface(surface)->bo;
+      pitch = brw_surface(surface)->pitch;
 
       BEGIN_BATCH(len, IGNORE_CLIPRECTS);
       OUT_BATCH(CMD_DEPTH_BUFFER << 16 | (len - 2));
index f7267cc78a1c4ce46fe18101a8a5efaaff560556..301b20d54908b367cc7766e0187304e39c7ce3c7 100644 (file)
@@ -167,9 +167,6 @@ brw_buffer_is_user_buffer( const struct pipe_buffer *buf )
    return ((const struct brw_buffer *)buf)->user_buffer != NULL;
 }
 
-struct brw_winsys_buffer *
-brw_surface_bo( struct pipe_surface *surface );
-
 unsigned
 brw_surface_pitch( const struct pipe_surface *surface );