diff options
author | Charmaine Lee <[email protected]> | 2017-12-04 10:03:51 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-09-10 13:07:30 -0600 |
commit | 3467a274e0761f90a73dff65cd20c767d1f12632 (patch) | |
tree | a4df0288a468b9d82e793b1f80e6f5e685b51b1f /src/gallium/drivers | |
parent | 5f144441842c9833b0c04c8431fb259ff9d2a4e0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index aaba3ac5f96..53cdb93c914 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -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); |