OSDN Git Service

i965/tex_subimage: use meta only for OpenGL ES 3.0 chipsets
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 25 Dec 2015 02:40:33 +0000 (03:40 +0100)
committerMauro Rossi <issor.oruam@gmail.com>
Tue, 12 Jan 2016 22:00:14 +0000 (23:00 +0100)
commit6a71ea62cf4c517af4d24e823f2c18ddac6b56d0
treef734a31aed98712f6fc448b111d9587e793f6d19
parentfcbb8b59fe317158d9a6e0003d89ce04ebc633a9
i965/tex_subimage: use meta only for OpenGL ES 3.0 chipsets

GL_PIXEL_UNPACK_BUFFER and GL_PIXEL_PACK_BUFFER are used in meta PBO,
but those capabilities are available only in OpenGL ES 3.0 parts,
so we skip _mesa_meta_pbo_TexSubImage() for gen4 and earlier.

This workaround avoids the hazi font bug #92323# affecting X3100 and X4500,
with neglibile impact in performance for gen5 and later.

This patch is complementary to the former in i965/tex_image.
src/mesa/drivers/dri/i965/intel_tex_subimage.c