i965/formatquery: remove INTERNALFORMAT_PREFERRED implementation
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 5 May 2016 09:28:37 +0000 (11:28 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 2 Jun 2016 06:54:10 +0000 (08:54 +0200)
commitc1ceee6cc966e25fb1e68d267bafdeb4528bc980
treebbbd00f13966848ca37ebfc574b64e5da4297813
parent58617bcebe1d0d5e8d360fec2c9dabf8771b0f7a
i965/formatquery: remove INTERNALFORMAT_PREFERRED implementation

Right now the implementation only checks if the internalformat is
supported or not. But that implementation is wrong, returning
unsupported for some internalformats. Additionally, checking if
the internalformat is supported or not is already done at mesa/main
before calling the driver hook, so this new check is not needed.

Acked-by: Eduardo Lima <elima@igalia.com>
Acked-by: Antia Puentes <apuentes@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_formatquery.c