[Mesa-dev] [PATCH] winsys/svga: use new ioctl for logging

2020-01-21 Thread VMware
From: Roland Scheidegger Use the new ioctl for logging (rather than duplicating what the kernel is doing). This way it's also independent from the actual guest/host mechanism to do the logging. Signed-off-by: Roland Scheidegger Reviewed-by: Thomas Hellstrom --- src/gallium/winsys/svga/drm/vmw

[Mesa-dev] [PATCH 1/2] svga: Fix banded DMA upload unmap

2019-10-09 Thread VMware
From: Thomas Hellstrom Even with banded DMA uploads, st->hwbuf is always non-NULL, but when we've allocated a software buffer to hold the full upload, unmapping of the hardware buffer has already been done before svga_texture_transfer_unmap_dma(), and the code was performing an unmap of an alread

[Mesa-dev] [PATCH 2/2] winsys/svga: Limit the maximum DMA hardware buffer size

2019-10-09 Thread VMware
From: Thomas Hellstrom The kernel total GMR/DMA size is limited, but it's definitely possible for the kernel to allow a larger buffer allocation to succeed, but command submission using that buffer as a GMR would fail typically causing an application crash. So have the winsys limit the size of G

[Mesa-dev] [PATCH 1/6] gallium/util: Make u_debug_flush support persistent maps

2019-06-19 Thread VMware
From: Thomas Hellstrom Previously unsynchronized maps have been assumed to also be persistent, Now destinguish between persistent and unsynchronized map and also support PIPE_TRANSFER_PERSISTENT from ARB_buffer_storage. Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul --- src/gallium/a

[Mesa-dev] [PATCH 4/6] svga: Map vertex- index- and constant buffers ansynchronously when reading

2019-06-19 Thread VMware
From: Thomas Hellstrom With SWTNL and index translation we're mapping buffers for reading. These buffers are commonly upload_mgr buffers that might already be referenced by another submitted or unsubmitted GPU command. A synchronous map will then trigger a flush and sync, at least on Linux that d

[Mesa-dev] [PATCH 3/6] svga: Fix index buffer uploads

2019-06-19 Thread VMware
From: Thomas Hellstrom In the case of SWTNL and index translation we were uploading index buffers and then reading out from them using the CPU. Furthermore, when translating indices we often cached the results with an upload_mgr buffer, causing the cached indexes to be immediately discarded on th

[Mesa-dev] [PATCH 2/6] winsys/svga: Make it possible to specify coherent resources

2019-06-19 Thread VMware
From: Thomas Hellstrom Add a flag in the surface cache key and a winsys usage flag to specify coherent memory. Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul --- src/gallium/drivers/svga/svga_screen_cache.c | 2 ++ src/gallium/drivers/svga/svga_screen_cache.h | 1 + src/gallium

[Mesa-dev] [PATCH 5/6] gallium/util: Make it possible to disable persistent maps in the upload manager

2019-06-19 Thread VMware
From: Thomas Hellstrom For svga, the use of persistent / coherent maps is typically slightly slower than without them. It's probably a bit case-dependent and possible to tune, but for now, make sure we can disable those. Signed-off-by: Thomas Hellstrom Reviewed-by: Brian Paul --- src/gallium/

[Mesa-dev] [PATCH 6/6] svga: Support ARB_buffer_storage

2019-06-19 Thread VMware
From: Thomas Hellstrom This basically boils down to supporting persistent and coherent buffer storage. We chose to use coherent buffer storage for all persistent buffers even if it's not explicitly specified, since using glMemoryBarrier to obtain coherency would be particularly expensive in our d