summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_context.h
diff options
context:
space:
mode:
authorChad Versace <chadversary@chromium.org>2018-04-10 23:22:03 -0700
committerChad Versace <chadversary@chromium.org>2018-07-30 10:50:41 -0700
commit8cb2b5c37a6f35db387ca20940d855eaf6bc9b6f (patch)
tree25bf9d63485188a965bd67cdab2a7fdd65355ff8 /src/mesa/drivers/dri/i965/brw_context.h
parent6158e78240808c45c85841f776050717c1ba990d (diff)
CHROMIUM: i965: Implement EGL_KHR_mutable_render_bufferchadv/wip/arc-18.2.0-pre1-i965-mutable-render-buffer-2018-07-30
Tested with a low-latency handwriting application on Android Nougat on the Chrome OS Pixelbook (codename Eve) with Kabylake. BUG=b:77899911 TEST=No android-cts-7.1 regressions on Eve. Change-Id: Ia816fa6b0a1158f81e5b63477451bf337c2001aa
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h
index 2613b9fda22..0784a6e9486 100644
--- a/src/mesa/drivers/dri/i965/brw_context.h
+++ b/src/mesa/drivers/dri/i965/brw_context.h
@@ -790,6 +790,18 @@ struct brw_context
*/
bool front_buffer_dirty;
+ /**
+ * True if the __DRIdrawable's current __DRIimageBufferMask is
+ * __DRI_IMAGE_BUFFER_SHARED.
+ */
+ bool is_shared_buffer_bound;
+
+ /**
+ * True if a shared buffer is bound and it has received any rendering since
+ * the previous __DRImutableRenderBufferLoaderExtension::displaySharedBuffer().
+ */
+ bool is_shared_buffer_dirty;
+
/** Framerate throttling: @{ */
struct brw_bo *throttle_batch[2];