summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-10-10 13:58:48 +0200
committerNicolai Hähnle <[email protected]>2017-10-10 13:58:48 +0200
commite14fe41e0bf5d82c0b22eda2f8dcea058ac6e610 (patch)
tree88978c7dc63ba4248b506817266762761cee37d2 /src/mesa/state_tracker
parent4ec2ac11bd277a7eaa7cc506fd88228d05a22cd9 (diff)
st/dri: implement createImageFromRenderbuffer(2)
Tested with dEQP-EGL.functional.image.*renderbuffer* tests. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.h b/src/mesa/state_tracker/st_cb_fbo.h
index 239bfd95e96..ed68875639d 100644
--- a/src/mesa/state_tracker/st_cb_fbo.h
+++ b/src/mesa/state_tracker/st_cb_fbo.h
@@ -79,6 +79,11 @@ st_renderbuffer(struct gl_renderbuffer *rb)
return (struct st_renderbuffer *) rb;
}
+static inline struct pipe_resource *
+st_get_renderbuffer_resource(struct gl_renderbuffer *rb)
+{
+ return st_renderbuffer(rb)->texture;
+}
/**
* Cast wrapper to convert a struct gl_framebuffer to an st_framebuffer.