intel: Fix separate stencil in builtin DRI2 backend
authorChad Versace <chad.versace@linux.intel.com>
Tue, 15 Nov 2011 15:08:49 +0000 (07:08 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 15 Nov 2011 16:00:29 +0000 (08:00 -0800)
commit79653c12d6da4d89aaa73e4e8260a84d91f93593
tree5a43ad499d0cf670cbe5dbfb97ab2cfcdfe4d3b9
parent50b33560784dde428fbb5dfe7d428255874c496c
intel: Fix separate stencil in builtin DRI2 backend

intelAllocateBuffer() was oblivious to separate stencil buffers.  This
patch fixes it to allocate a non-tiled stencil buffer with special pitch,
just as the DDX does.

Without this, any app that attempted to create an EGL surface with stencil
bits would crash. Of course, this affected only environments that used the
builtin DRI2 backend, such as Android and Wayland.

Fixes GLBenchmark2.1 on Android on gen7.

Note: This is a candidate for the 7.11 branch.
Tested-by: Louie Tsaie <louie.tsai@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_screen.c