svga: simplify/improve the format compatibility check for region copies
authorBrian Paul <brianp@vmware.com>
Tue, 20 Sep 2016 23:36:32 +0000 (17:36 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Sep 2016 01:54:42 +0000 (19:54 -0600)
commitc42000545df33b9ab18aa2c5f9775632e0667783
treec6cda27e6d0e4631aa23f7fa1a8b5ae6cce259ec
parent2ad4ba07279236dcdbafb6e4b2a0c183c69c92f4
svga: simplify/improve the format compatibility check for region copies

The util_is_format_compatible() function didn't quite do what we wanted
for vgpu10.  This check is more flexible and allows copies between
formats such as R32G32B32A32_FLOAT and R32G32B32A32_INT.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_blit.c