mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
drm/vmwgfx: Make sure that the multisampling is off
By default SVGA device creates nonmaskable multisampling surfaces, in which case multisampleCount of 1 means: the first quality setting of nonmaskable multisampling surface. Lets change it to make sure that the backends know that multisampling is really off. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c373d4eac4
commit
15c6f65623
@ -777,7 +777,7 @@ int vmw_surface_define_ioctl(struct drm_device *dev, void *data,
|
|||||||
|
|
||||||
srf->base_size = *srf->sizes;
|
srf->base_size = *srf->sizes;
|
||||||
srf->autogen_filter = SVGA3D_TEX_FILTER_NONE;
|
srf->autogen_filter = SVGA3D_TEX_FILTER_NONE;
|
||||||
srf->multisample_count = 1;
|
srf->multisample_count = 0;
|
||||||
|
|
||||||
cur_bo_offset = 0;
|
cur_bo_offset = 0;
|
||||||
cur_offset = srf->offsets;
|
cur_offset = srf->offsets;
|
||||||
|
@ -886,7 +886,7 @@ enum drm_vmw_surface_flags {
|
|||||||
* @format: SVGA3d format.
|
* @format: SVGA3d format.
|
||||||
* @mip_level: Number of mip levels for all faces.
|
* @mip_level: Number of mip levels for all faces.
|
||||||
* @drm_surface_flags Flags as described above.
|
* @drm_surface_flags Flags as described above.
|
||||||
* @multisample_count Future use. Set to 1.
|
* @multisample_count Future use. Set to 0.
|
||||||
* @autogen_filter Future use. Set to 0.
|
* @autogen_filter Future use. Set to 0.
|
||||||
* @buffer_handle Buffer handle of backup buffer. SVGA3D_INVALID_ID
|
* @buffer_handle Buffer handle of backup buffer. SVGA3D_INVALID_ID
|
||||||
* if none.
|
* if none.
|
||||||
|
Loading…
Reference in New Issue
Block a user