mesa/st: implement memory objects as a backend for texture storage
authorDave Airlie <airlied@redhat.com>
Wed, 12 Jul 2017 22:45:14 +0000 (18:45 -0400)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 6 Aug 2017 02:42:06 +0000 (12:42 +1000)
commit768354002933dc812462b99f90331203707ce012
tree348700d67c7bd39c4c4118492f8a592f6b4b88ca
parent999653e398bf1020eb517d7927fa75360cf7c399
mesa/st: implement memory objects as a backend for texture storage

Instead of allocating memory to back a texture, use the provided memory
object.

v2: split off extension exposure logic
v3: de-duplicate code with st_AllocTextureStorage

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/state_tracker/st_cb_bufferobjects.c
src/mesa/state_tracker/st_cb_texture.c