summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5ee87bcac08..4dd73636fd1 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 f7267cc78a1..301b20d5490 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 );