intel: Don't call _mesa_get_format_bytes for MESA_FORMAT_NONE
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 16 Jul 2012 14:54:30 +0000 (10:54 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 16 Jul 2012 15:00:16 +0000 (11:00 -0400)
commit636646a481ef6ce29e74e4604125a42def3ed1e5
tree87232e77e17dea6b1a2fb373db4d4285e5a06705
parent81de0431d6f52084e01874163657e141e6beffdf
intel: Don't call _mesa_get_format_bytes for MESA_FORMAT_NONE

When we don't intend to texture from or render to a __DRIimage we
use __DRI_IMAGE_FORMAT_NONE.  In that case, we just create the __DRIimage
to reference the underlying buffer, and will create usable __DRIimages
from it using createSubImage later.

If we try to use _mesa_get_format_bytes() on MESA_FORMAT_NONE in
a debug build, we hit an assertion, so let's not do that.
src/mesa/drivers/dri/intel/intel_screen.c