mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
svga: no dma on multisample surface
Force direct map on multisample surface. Fixes SVGA Driver Errors running multisample piglit tests on Linux VM v2: use texture for the check. Reviewed-by: Neha Bhende <bhenden@vmware.com>
This commit is contained in:
parent
5f14444184
commit
3467a274e0
1 changed files with 7 additions and 0 deletions
|
|
@ -600,6 +600,13 @@ svga_texture_transfer_map(struct pipe_context *pipe,
|
|||
break;
|
||||
}
|
||||
|
||||
/* Force direct map for multisample surface */
|
||||
if (texture->nr_samples > 1) {
|
||||
assert(svga_have_gb_objects(svga));
|
||||
assert(sws->have_sm4_1);
|
||||
use_direct_map = TRUE;
|
||||
}
|
||||
|
||||
st->use_direct_map = use_direct_map;
|
||||
pipe_resource_reference(&st->base.resource, texture);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue