gallium: use MAP_DIRECTLY to mean supression of DISCARD in buffer_subdata
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 22:51:24 +0000 (18:51 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 15 Jul 2019 18:58:23 +0000 (14:58 -0400)
commitfc4302d1dfe4fe724df250d0de1fcf0f60953c99
treeb8fe616f5eafb71a2fb087eca81061b5d76026df
parent5e76c9992317f20f89fafe3aab03026ca550766e
gallium: use MAP_DIRECTLY to mean supression of DISCARD in buffer_subdata

This is needed to fix an issue with OpenGL when a buffer is mapped and
BufferSubData is called. In this case, we can't invalidate the buffer range.
src/gallium/auxiliary/util/u_threaded_context.c
src/gallium/auxiliary/util/u_transfer.c
src/gallium/drivers/r600/r600_buffer_common.c
src/gallium/drivers/radeonsi/si_buffer.c
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/include/pipe/p_defines.h