intel: Prevent an "irq is not working" printf when only pipe B is enabled.
authorOwain G. Ainsworth <oga@openbsd.org>
Wed, 21 Jan 2009 22:41:26 +0000 (22:41 +0000)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 23 Jan 2009 20:51:19 +0000 (12:51 -0800)
commit39b4061bb9be540dfb51891e22c505bc235ec8a2
tree2bd41c680dd66d13ff7533a40e7afaa454bfbe2f
parent6f8896c5999721e7ba95645af562c47be29cf138
intel: Prevent an "irq is not working" printf when only pipe B is enabled.

intelMakeCurrent is called before intelWindowMoved (in fact, it calls
it), so calculation of the correct vblank crtc has not happened yet.
Fix this by making a function that fixes up a set of vblank flags and
call if from both functions.
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_buffers.h
src/mesa/drivers/dri/intel/intel_context.c