swr: replace gallium->swr format enum conversion
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 20 Sep 2016 16:15:55 +0000 (11:15 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Tue, 27 Sep 2016 17:55:26 +0000 (12:55 -0500)
commit50842e8a9313400a0d31f5fca2e346b95d12b262
treed1ffa58169ed62485410133136e353ed32ba58a9
parent4421c0fb0dc7a51c3d639c452ad8a5d55a99cec1
swr: replace gallium->swr format enum conversion

Replace old string comparison with a mapping table.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_screen.cpp