summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-06 13:41:52 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-06 13:41:52 +0000
commit11805726d311a5d11e58f01b2793cc19d7f98566 (patch)
treedc33aa19fe5c760d2dc26d8eecec2e52fe3ec926 /src/gallium/drivers/i965
parenteacd13bcc809e1e877a48c2942eb6285aa21f6be (diff)
i965g: remove references to brw_surface_bo()
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_misc_state.c6
-rw-r--r--src/gallium/drivers/i965/brw_screen.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/drivers/i965/brw_misc_state.c b/src/gallium/drivers/i965/brw_misc_state.c
index 5ee87bcac0..4dd73636fd 100644
--- a/src/gallium/drivers/i965/brw_misc_state.c
+++ b/src/gallium/drivers/i965/brw_misc_state.c
@@ -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));
diff --git a/src/gallium/drivers/i965/brw_screen.h b/src/gallium/drivers/i965/brw_screen.h
index f7267cc78a..301b20d549 100644
--- a/src/gallium/drivers/i965/brw_screen.h
+++ b/src/gallium/drivers/i965/brw_screen.h
@@ -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 );