diff options
author | Stanislav Vorobiov <s.vorobiov@samsung.com> | 2014-04-14 16:13:56 +0400 |
---|---|---|
committer | Stanislav Vorobiov <s.vorobiov@samsung.com> | 2014-04-14 18:45:19 +0400 |
commit | 4c32c4bdf060879a4b00701f082935d40776fe2b (patch) | |
tree | b7da5b6e804b98450c8dc4cf25a07df5d4604dec /GLESv1_CM | |
parent | 9502222b7833f3c21e85eef4ccb90dd7be637a5c (diff) | |
download | emulator-yagl-4c32c4bdf060879a4b00701f082935d40776fe2b.tar.gz emulator-yagl-4c32c4bdf060879a4b00701f082935d40776fe2b.tar.bz2 emulator-yagl-4c32c4bdf060879a4b00701f082935d40776fe2b.zip |
YaGL: Optimize glGetXXXsubmit/tizen/20140422.144844
1. Keep track of all remaining context state, thus, glGetXXX queries
will return state values without vmexit
2. Cache glGetXXX results on target, queries such as GL_XXX_MAX don't
change over time, so no need to vmexit every time user wants to
read them
Change-Id: I08de6a51b88ff70d60e6aaf1c7cf2161ea3b06b6
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
Diffstat (limited to 'GLESv1_CM')
-rw-r--r-- | GLESv1_CM/yagl_gles1_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/GLESv1_CM/yagl_gles1_context.c b/GLESv1_CM/yagl_gles1_context.c index 4f14c94..df704f5 100644 --- a/GLESv1_CM/yagl_gles1_context.c +++ b/GLESv1_CM/yagl_gles1_context.c @@ -1457,6 +1457,12 @@ static int yagl_gles1_context_validate_renderbuffer_format(struct yagl_gles_cont return 0; } +static void yagl_gles1_context_hint(struct yagl_gles_context *ctx, + GLenum target, + GLenum mode) +{ +} + struct yagl_client_context *yagl_gles1_context_create(struct yagl_sharegroup *sg) { struct yagl_gles1_context *gles1_ctx; @@ -1490,6 +1496,7 @@ struct yagl_client_context *yagl_gles1_context_create(struct yagl_sharegroup *sg gles1_ctx->base.validate_copyteximage_format = &yagl_gles1_context_validate_copyteximage_format; gles1_ctx->base.validate_texstorage_format = &yagl_gles1_context_validate_texstorage_format; gles1_ctx->base.validate_renderbuffer_format = &yagl_gles1_context_validate_renderbuffer_format; + gles1_ctx->base.hint = &yagl_gles1_context_hint; YAGL_LOG_FUNC_EXIT("%p", gles1_ctx); |