diff options
author | Brian <brian@i915.localnet.net> | 2007-08-09 12:59:11 -0600 |
---|---|---|
committer | Brian <brian@i915.localnet.net> | 2007-08-09 14:29:48 -0600 |
commit | f5713c7d2e7ba8e1170fd9b1dd95379662ab6117 (patch) | |
tree | 30cf85b542002d7bba214eb250ca34d96cbd06d1 /src/mesa/state_tracker/st_cb_fbo.h | |
parent | 36fc648ddd937962e659d6215ed6cfb864fb9f05 (diff) |
Checkpoint intel_renderbuffer removal.
Remove surface ptr from gl_renderbuffer.
Use st_renderbuffer in most places.
More clean-up.
Diffstat (limited to 'src/mesa/state_tracker/st_cb_fbo.h')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.h b/src/mesa/state_tracker/st_cb_fbo.h index 7f52ab10d7..b2e7ba810c 100644 --- a/src/mesa/state_tracker/st_cb_fbo.h +++ b/src/mesa/state_tracker/st_cb_fbo.h @@ -30,10 +30,25 @@ #define ST_CB_FBO_H -/* -extern struct gl_renderbuffer * -st_new_renderbuffer_fb(struct pipe_region *region, GLuint width, GLuint height); -*/ + +/** + * Derived renderbuffer class. Just need to add a pointer to the + * pipe surface. + */ +struct st_renderbuffer +{ + struct gl_renderbuffer Base; + struct pipe_surface *surface; +}; + + +static INLINE struct st_renderbuffer * +st_renderbuffer(struct gl_renderbuffer *rb) +{ + return (struct st_renderbuffer *) rb; +} + + extern struct gl_renderbuffer * st_new_renderbuffer_fb(GLuint intFormat); |