diff options
author | Mauro Rossi <issor.oruam@gmail.com> | 2016-11-01 14:22:54 +0100 |
---|---|---|
committer | Mauro Rossi <issor.oruam@gmail.com> | 2016-11-01 20:42:00 +0100 |
commit | 1955a9ca8d71ba5eaff4073bdfff4dee76e1a73a (patch) | |
tree | a8c27f4f3c5df96847e1994232b46e2f2ac20a49 /src | |
parent | 120f2493d6456db3461edc1680658d347793f04a (diff) | |
download | external_mesa3d-1955a9ca8d71ba5eaff4073bdfff4dee76e1a73a.zip external_mesa3d-1955a9ca8d71ba5eaff4073bdfff4dee76e1a73a.tar.gz external_mesa3d-1955a9ca8d71ba5eaff4073bdfff4dee76e1a73a.tar.bz2 |
HACK: i915: enable image external sampling
This hack is the alternative way of enabling GL_OES_EGL_image_external
as opposed to defining mesa environment variable in init.rc
As a reference this hack works on i915 also because of commit
"android: a workaround for GL_INVALID_OPERATION (0x502) error"
which allows for external image being mapped despited not being dma-buf
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_extensions.c b/src/mesa/drivers/dri/i915/intel_extensions.c index ab7820f..eca6234 100644 --- a/src/mesa/drivers/dri/i915/intel_extensions.c +++ b/src/mesa/drivers/dri/i915/intel_extensions.c @@ -76,6 +76,7 @@ intelInitExtensions(struct gl_context *ctx) ctx->Extensions.TDFX_texture_compression_FXT1 = true; ctx->Extensions.OES_EGL_image = true; ctx->Extensions.OES_draw_texture = true; + ctx->Extensions.OES_EGL_image_external = true; ctx->Const.GLSLVersion = 120; _mesa_override_glsl_version(&ctx->Const); |