diff options
author | Jose Fonseca <[email protected]> | 2015-02-05 14:33:06 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2015-02-05 16:16:47 +0000 |
commit | 08efcc0960ab3a0b781c4b9d630d3d97763cadb0 (patch) | |
tree | 0b3e43f220b533052eec1b9ce24a375464716a7d /src/gallium | |
parent | 2335153ff2fae01d6294876a86d3eab59c6c4236 (diff) |
llvmpipe: Trivially advertise PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT.
Nothing special needs to be done.
Even though llvmpipe copies constant (ie uniform) buffers internally, the
application is supposed to flush and sync, so all should work.
All bufferstorage piglit tests pass.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 3b316563ef2..507cfcfaf98 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -246,9 +246,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) return PIPE_ENDIAN_NATIVE; case PIPE_CAP_TGSI_VS_LAYER_VIEWPORT: return 1; + case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: + return 1; case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS: case PIPE_CAP_TEXTURE_GATHER_SM5: - case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: case PIPE_CAP_TEXTURE_QUERY_LOD: case PIPE_CAP_SAMPLE_SHADING: case PIPE_CAP_TEXTURE_GATHER_OFFSETS: |