meta: Use GL_STREAM_READ for pbo created with GL_PIXEL_PACK_BUFFER
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 4 Feb 2015 00:50:57 +0000 (16:50 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 25 Feb 2015 22:11:14 +0000 (14:11 -0800)
commit618c4c4b6ab82c606cd2c8f139372502baa06c5f
treedd44f72251f539b111ccf0b84b1a0575baa2d4e6
parent8d6ae49a8b18ad8006ff8f22caf06bad83b96e6b
meta: Use GL_STREAM_READ for pbo created with GL_PIXEL_PACK_BUFFER

create_texture_for_pbo() is used by both _mesa_meta_pbo_GetTexSubImage()
and _mesa_meta_pbo_TexSubImage() functions with different PBO targets.
Use GL_STREAM_READ with GL_PIXEL_PACK_BUFFER and GL_STREAM_DRAW with
GL_PIXEL_UNPACK_BUFFER.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/common/meta_tex_subimage.c