i965: Check if the modifier is supported in select_best_modifier
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 16 Jul 2017 23:54:44 +0000 (16:54 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Jul 2017 20:48:38 +0000 (13:48 -0700)
commit7947d05f840cfbb9b162a279d6eccc9416217e68
tree0f030fe4ba2891eea162e43a81117d827d4a7c45
parentec4364d57ec2990e9cc81bb5a932bc115d3e6c44
i965: Check if the modifier is supported in select_best_modifier

Otherwise, if a client gave us a list of modifiers that contained a
modifier we understand but which is not supported on the hardware, we
might return that one and then fail to create the image.

Reviewed-by: Daniel Stone <daniels@collabora.com>
src/mesa/drivers/dri/i965/intel_screen.c