svga: enable MSAA for SM4_1 device
authorBrian Paul <brianp@vmware.com>
Wed, 5 Sep 2018 15:48:35 +0000 (09:48 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
commit3f55425ee69dafb5d5dd10bea4cf2010d87d5eee
tree3afc55bc6f1d5030a0109762419336292f806172
parent8088cb6f53ddf6313fefce2789f657e595f3a489
svga: enable MSAA for SM4_1 device

The SVGA device is deprecating the DX9 MSAA support.
This patch enables MSAA for SM4_1 device by explicitly
setting the SVGA3D_SURFACE_MULTISAMPLE bit.
For SM4_1 device, only 4 samples is supported.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_surface.c