mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 02:18:10 +02:00
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>
This commit is contained in:
parent
6f254ad9b4
commit
3069581260
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue