intel: Clean up check_pbo_format to ignore internalFormat.
authorEric Anholt <eric@anholt.net>
Wed, 21 Sep 2011 16:37:51 +0000 (09:37 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Sep 2011 18:03:22 +0000 (11:03 -0700)
commit3bb536e4c7b7fb0c0a9b18f5ca2d111996b0ddeb
tree922fd4faee49050db3fb5f56359d382f2d97a945
parent0ba23909475c085d81a5b181744c167ccbe53482
intel: Clean up check_pbo_format to ignore internalFormat.

All that matters here is the format of the texture, not the
internalformat (which might mean various different pixel formats).  In
one case, the pbo upload for MESA_FORMAT_YCBCR would have swapped the
channels for MESA_FORMAT_YCBCR_REV.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_tex_image.c