summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorCharmaine Lee <charmainel@vmware.com>2017-12-06 15:33:45 -0800
committerBrian Paul <brianp@vmware.com>2018-09-10 13:07:30 -0600
commit30695812606d3211052a9845f0223ca52ffcb881 (patch)
treeb3a8f7bbfa54137e61d1bf1b16324d1e19232321 /src/gallium/drivers
parent6f254ad9b4c5cfe81c8f471d27cbaf0f9a74028e (diff)
svga: no need to check MULTISAMPLE devcap for view format
According to the current SVGA contract, any view format can be used on the underlying resource that is multisample. So there is no need to check the MULTISAMPLE devcap for the view format. Fixes black rendering issue with Tropics running with 4xMSAA. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
index 0ad55c910c3..1eb03b9a4dd 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -2457,7 +2457,7 @@ svga_is_dx_format_supported(struct pipe_screen *screen,
if (sampler_format != svga_format) {
caps.u = 0;
svga_get_dx_format_cap(ss, sampler_format, &caps);
- mask &= (SVGA3D_DXFMT_VOLUME | SVGA3D_DXFMT_MULTISAMPLE);
+ mask &= SVGA3D_DXFMT_VOLUME;
mask |= SVGA3D_DXFMT_SHADER_SAMPLE;
if ((caps.u & mask) != mask)
return FALSE;