diff options
author | Brian Paul <[email protected]> | 2018-09-05 09:48:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | 3f55425ee69dafb5d5dd10bea4cf2010d87d5eee (patch) | |
tree | 3afc55bc6f1d5030a0109762419336292f806172 /src/gallium/drivers/svga/svga_surface.c | |
parent | 8088cb6f53ddf6313fefce2789f657e595f3a489 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_surface.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_surface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_surface.c b/src/gallium/drivers/svga/svga_surface.c index 6237999b75f..45badae6ce8 100644 --- a/src/gallium/drivers/svga/svga_surface.c +++ b/src/gallium/drivers/svga/svga_surface.c @@ -186,7 +186,8 @@ svga_texture_view_surface(struct svga_context *svga, key->sampleCount = tex->b.b.nr_samples > 1 ? tex->b.b.nr_samples : 0; if (key->sampleCount > 1) { - key->flags |= SVGA3D_SURFACE_MASKABLE_ANTIALIAS; + assert(ss->sws->have_sm4_1); + key->flags |= SVGA3D_SURFACE_MULTISAMPLE; } if (tex->b.b.target == PIPE_TEXTURE_CUBE && layer_pick < 0) { |