mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
intel: use _mesa_meta_Clear with OpenGL ES 1.1 v2
Patch changes i915 and i965 drivers to use fixed function version of
meta clear when running on ES 1.1. This fixes rendering errors seen with
Google Maps, Angry Birds and Gallery3D on Android platform.
Change 88128516d4 exposes all extensions
internally to be available independent of GL flavour, therefore check
against ARB_fragment_shader does not work.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50333
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
5deb1d1a1f
commit
94f22fbe78
2 changed files with 9 additions and 4 deletions
|
|
@ -179,10 +179,10 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
|
|||
|
||||
if (tri_mask) {
|
||||
debug_mask("tri", tri_mask);
|
||||
if (ctx->Extensions.ARB_fragment_shader)
|
||||
_mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
|
||||
else
|
||||
if (ctx->API == API_OPENGLES)
|
||||
_mesa_meta_Clear(&intel->ctx, tri_mask);
|
||||
else
|
||||
_mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -226,7 +226,12 @@ brw_clear(struct gl_context *ctx, GLbitfield mask)
|
|||
if (tri_mask) {
|
||||
debug_mask("tri", tri_mask);
|
||||
mask &= ~tri_mask;
|
||||
_mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
|
||||
|
||||
if (ctx->API == API_OPENGLES) {
|
||||
_mesa_meta_Clear(&intel->ctx, tri_mask);
|
||||
} else {
|
||||
_mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
|
||||
}
|
||||
}
|
||||
|
||||
/* Any strange buffers get passed off to swrast */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue