gallium/u_threaded: disallow discard_range if map_buffer is unsynchronized
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Aug 2017 13:34:17 +0000 (15:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 28 Aug 2017 19:45:32 +0000 (21:45 +0200)
commit28c4c55810bea494c94e02c6a54757803985655d
tree869d6318efb7db01430be07c8ebadc29a9a2e413
parent63e79a8a777b36ecb30a1f6900e6b638cb32fc5f
gallium/u_threaded: disallow discard_range if map_buffer is unsynchronized

The discard range codepath takes precedence, so if we get both
unsynchronized and discard_range, choose unsynchronized.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_threaded_context.c