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;
}
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));
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 );