st/mesa: Don't use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 5 Feb 2015 03:46:04 +0000 (12:46 +0900)
committerMichel Dänzer <michel@daenzer.net>
Fri, 6 Feb 2015 01:55:53 +0000 (10:55 +0900)
commita338dc01866ce50bf7555ee8dc08491c7f63b585
tree3e7a68a933244ac29aed8e0143ce42302a249b3f
parent17abefa12be1d5e7d436bfbb082c3eba19adf26c
st/mesa: Don't use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB

The latter currently implies CPU read access, so only PIPE_USAGE_STAGING
can be expected to be fast.

Mesa demos src/tests/streaming_rect on Kaveri (radeonsi):

Unpatched:  42 frames in  1.023 seconds = 41.056 FPS
Patched:   615 frames in  1.000 seconds = 615.000 FPS

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88658
Cc: "10.3 10.4" <mesa-stable@lists.freedestkop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_bufferobjects.c