i965: Issue perf_debug messages for unsynchronized maps on !LLC systems.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Feb 2015 05:34:30 +0000 (21:34 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 17 Apr 2015 19:14:52 +0000 (12:14 -0700)
commit1d6829813ef2b002fca488e6a8051e3090bf87bd
tree830fab0fdb191a174ad9b255882ec45fa97673ce
parentcd9058fae3eddaa0e88cd3557684700852f86a5a
i965: Issue perf_debug messages for unsynchronized maps on !LLC systems.

We haven't implemented proper unsynchronized map support on !LLC systems
(pre-SNB, Atom).  MapBufferRange with GL_MAP_UNSYNCHRONIZE_BIT will
actually do a synchronized map, probably killing performance.

Also warn on BufferSubData, when we should be doing an unsynchronized
upload, but instead have to do a synchronous map.

v2: Only complain if the buffer is actually busy - we use unsynchronized
    maps internally for vertex upload and such, but expect those to not
    be busy.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Tested-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/intel_buffer_objects.c