meta: Fix the pbo usage in meta for GLES{1,2} contexts
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 18 Dec 2015 23:33:35 +0000 (15:33 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 2 Mar 2016 23:06:45 +0000 (15:06 -0800)
commit6d4ebbe9e5798edee199671c0a98cbf2c5b042e2
treee250808f952e50d0957e96a000d855630f780dd1
parent0d047d10f196b72be938d004f2e0fc7e5c253702
meta: Fix the pbo usage in meta for GLES{1,2} contexts

OpenGL ES 1.0 doesn't support using GL_STREAM_DRAW and both
ES 1.0 and 2.0 don't support GL_STREAM_READ in glBufferData().
So, handle it correctly by calling the _mesa_meta_begin()
before create_texture_for_pbo().

V2: Remove the changes related to allocate_storage. (Ian)

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta_tex_subimage.c