summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_misc_state.c
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/brw_misc_state.c
parenteacd13bcc809e1e877a48c2942eb6285aa21f6be (diff)
i965g: remove references to brw_surface_bo()
Diffstat (limited to 'src/gallium/drivers/i965/brw_misc_state.c')
-rw-r--r--src/gallium/drivers/i965/brw_misc_state.c6
1 files changed, 3 insertions, 3 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));