summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-27 10:13:55 -0700
committerKenneth Graunke <[email protected]>2013-10-13 00:10:43 -0700
commita25caad9e4ed848e8b1169376901d6b9889faa80 (patch)
tree64ee23f7ecb8b0a597c6c885f8d1e1494e3f1d92 /src
parent832bcc36133107e604a89f1762b9794fa7fc52ca (diff)
i965: Update the comment about viewport hacks.
It wasn't clear that this was necessary for EGL, or why. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_context.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c
index 5a73e283c76..850b18cd65e 100644
--- a/src/mesa/drivers/dri/i965/intel_context.c
+++ b/src/mesa/drivers/dri/i965/intel_context.c
@@ -373,7 +373,13 @@ intelInitContext(struct brw_context *brw,
int bo_reuse_mode;
struct gl_config visual;
- /* Can't rely on invalidate events, fall back to glViewport hack */
+ /* GLX uses DRI2 invalidate events to handle window resizing.
+ * Unfortunately, EGL does not - libEGL is written in XCB (not Xlib),
+ * which doesn't provide a mechanism for snooping the event queues.
+ *
+ * So EGL still relies on viewport hacks to handle window resizing.
+ * This should go away with DRI3000.
+ */
if (!driContextPriv->driScreenPriv->dri2.useInvalidate) {
brw->saved_viewport = functions->Viewport;
functions->Viewport = intel_viewport;