i965/miptree: Add a colorspace parameter to create_for_dri_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Jun 2017 18:35:32 +0000 (11:35 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Jul 2017 04:15:46 +0000 (21:15 -0700)
commit2dd4e2348f3c05cd11cd6573fbbaeea7ab898692
tree72be5224cd63172b14662704b35ef6d16f7d81f9
parent14ce44a7bca30999601969563d97167751cdd326
i965/miptree: Add a colorspace parameter to create_for_dri_image

The __DRI_FORMAT enums are all UNORM but we will frequently want sRGB
when creating miptrees for renderbuffers.  This lets us specify.

Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_fbo.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_tex_image.c