intel: Improve the test for readpixels blit path format checking.
authorEric Anholt <eric@anholt.net>
Mon, 28 Jan 2013 06:44:17 +0000 (17:44 +1100)
committerEric Anholt <eric@anholt.net>
Wed, 6 Mar 2013 00:02:38 +0000 (16:02 -0800)
commit731d474d98ab0cbba5e8baeaf4b2b9d24950c430
treea4f2ce492eb50260bff93b6681175013caed52a9
parent3c7e96ff014299fb50f7e5f06efb96c026a406f4
intel: Improve the test for readpixels blit path format checking.

We were allowing things like copying RG1616 to a user's ARGB8888
format, while we were denying anything that wasn't ARGB8888 or
RGB565.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_pixel.c
src/mesa/drivers/dri/intel/intel_pixel.h
src/mesa/drivers/dri/intel/intel_pixel_read.c