i965/fs_surface_builder: Explicitly handle FORMAT_NONE in num_image_coordinates
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 4 Nov 2015 23:12:19 +0000 (15:12 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Apr 2016 03:44:27 +0000 (20:44 -0700)
commit24bb75049ba0f5cdda5808fcdbb659f2dd3ce45b
treeb37bcbd180dfa8d13438c7ce551765e0c7ea13b8
parentf310c02b94fba0a0a5ea7f5573f906de823cc5fe
i965/fs_surface_builder: Explicitly handle FORMAT_NONE in num_image_coordinates

Previously, we were relying on has_matching_typed_format returning true for
MESA_FORMAT_NONE which, in turn, relied on _mesa_get_format_bytes returning
1 for MESA_FORMAT_NONE.  When we switch to ISL, this behaviour will no
longer be something we can rely on.

Reviewed-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp