i965: Do legacy userclipping in OpenGL ES 1.x contexts.
Commit fba4823a disabled user clipping for everything except
compatibility profile. Core profile and OpenGL ES 2.0+ have all removed
the classic, OpenGL 1.0 user clip planes. ES 1.x, however, still has
them.
Fixes OpenGL ES 1.1 conformance mustpass.c and userclip.c
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Olivier Berthier <olivierx.berthier@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92639
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92641
This commit is contained in:
@@ -311,7 +311,8 @@ brw_vs_populate_key(struct brw_context *brw,
|
||||
key->program_string_id = vp->id;
|
||||
|
||||
if (ctx->Transform.ClipPlanesEnabled != 0 &&
|
||||
ctx->API == API_OPENGL_COMPAT &&
|
||||
(ctx->API == API_OPENGL_COMPAT ||
|
||||
ctx->API == API_OPENGLES) &&
|
||||
vp->program.Base.ClipDistanceArraySize == 0) {
|
||||
key->nr_userclip_plane_consts =
|
||||
_mesa_logbase2(ctx->Transform.ClipPlanesEnabled) + 1;
|
||||
|
||||
Reference in New Issue
Block a user