intel: Add assertions to intelCreateBuffer()
authorChad Versace <chad@chad-versace.us>
Thu, 26 May 2011 21:55:54 +0000 (14:55 -0700)
committerChad Versace <chad@chad-versace.us>
Wed, 8 Jun 2011 17:06:40 +0000 (10:06 -0700)
commitf4efb7ff4f9cb0f6386e9b53f4dcfd9ef23dc9d1
tree88c58655c7a99de52222182d26c6daff8e90ec1c
parent89d34cfd3e7c96cefc489fbb995124e2dc4a97ec
intel: Add assertions to intelCreateBuffer()

Assert that the GLX config has an expected depth/stencil bit combination:
one of d24/s8, d16/s0, d0/s0. These are the only depth/stencil
configurations that we advertise.

Remove the check for software stencil, because given the assertions'
constraints the check always fails.

CC: Ian Romanick <idr@freedesktop.org>
CC: Kristian Høgsberg <krh@bitplanet.net>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_screen.c