diff options
author | Marek Olšák <[email protected]> | 2013-03-14 17:18:43 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-23 13:19:16 +0100 |
commit | 3e10ab6b22341c06a9352b1e029b923f4d8405b9 (patch) | |
tree | ac3dd22bf0f641b69562204066df4c2e211ef8a6 /src/gallium/drivers/nvc0 | |
parent | 25e3094058977648a6f552d59b728a9ea814b7c2 (diff) |
gallium,st/mesa: don't use blit-based transfers with software rasterizers
The blit-based paths for TexImage, GetTexImage, and ReadPixels aren't very
fast with software rasterizer. Now Gallium drivers have the ability to turn
them off.
Reviewed-by: Brian Paul <[email protected]>
Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_screen.c b/src/gallium/drivers/nvc0/nvc0_screen.c index 73cf0af4d1d..b6cf2ca8a1f 100644 --- a/src/gallium/drivers/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nvc0/nvc0_screen.c @@ -179,6 +179,8 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return 0; case PIPE_CAP_COMPUTE: return (class_3d >= NVE4_3D_CLASS) ? 1 : 0; + case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER: + return 1; default: NOUVEAU_ERR("unknown PIPE_CAP %d\n", param); return 0; |