diff options
author | Bruce Cherniak <[email protected]> | 2017-07-12 15:04:47 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-07-12 16:56:40 -0500 |
commit | 02735e6cf8821f83e04fb78cd24960a4903ce118 (patch) | |
tree | 0407f33c257975811333cb82e9de6627748efff9 /src/gallium/drivers/swr/swr_screen.h | |
parent | 1520a06607b58cdcadcf888594b0c2f269ba68b2 (diff) |
swr: Add path to draw directly from client memory without copy.
If size of client memory copy is too large, don't copy. The draw will
access user-buffer directly and then block. This is faster and more
efficient than queuing many large client draws.
Applications that still use large client arrays benefit from this. VMD
is an example.
The threshold for this path defaults to 32KB. This value can be
overridden by setting environment variable SWR_CLIENT_COPY_LIMIT.
v2: Use #define for default value, rather than hard-coded constant.
Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_screen.h')
-rw-r--r-- | src/gallium/drivers/swr/swr_screen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.h b/src/gallium/drivers/swr/swr_screen.h index a10f4265354..a11ea9f41de 100644 --- a/src/gallium/drivers/swr/swr_screen.h +++ b/src/gallium/drivers/swr/swr_screen.h @@ -43,8 +43,10 @@ struct swr_screen { struct sw_winsys *winsys; + /* Configurable environment settings */ boolean msaa_force_enable; uint8_t msaa_max_count; + uint32_t client_copy_limit; HANDLE hJitMgr; |