diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-09-17 10:26:45 -0400 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-10-06 11:36:37 -0700 |
commit | ea8b77e892cdf6aa4cdd8a9ff312c422b3509ae7 (patch) | |
tree | d476e36db757f6deb485fc560d63dceb689472da /src/mesa/main/framebuffer.h | |
parent | 5c4ef9f1d2ae6a1824119aa246eaea727e294e3a (diff) |
mesa/i965: Refactor brw_is_front_buffer_{drawing,reading} to common code
There are multiple similar implementations of these functions, and a
later patch was going to add another.
v2: Move removing intel_framebuffer to a different patch.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/main/framebuffer.h')
-rw-r--r-- | src/mesa/main/framebuffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/framebuffer.h b/src/mesa/main/framebuffer.h index 08e43222045..bfc8a0836e7 100644 --- a/src/mesa/main/framebuffer.h +++ b/src/mesa/main/framebuffer.h @@ -139,4 +139,10 @@ _mesa_get_read_renderbuffer_for_format(const struct gl_context *ctx, extern void _mesa_print_framebuffer(const struct gl_framebuffer *fb); +extern bool +_mesa_is_front_buffer_reading(const struct gl_framebuffer *fb); + +extern bool +_mesa_is_front_buffer_drawing(const struct gl_framebuffer *fb); + #endif /* FRAMEBUFFER_H */ |