<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - dEQP-GLES3.functional.state_query.integers.viewport_get* failure"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98248#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - dEQP-GLES3.functional.state_query.integers.viewport_get* failure"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98248">bug 98248</a>
from <span class="vcard"><a class="email" href="mailto:randy.xu@intel.com" title="Randy <randy.xu@intel.com>"> <span class="fn">Randy</span></a>
</span></b>
<pre>I got the answer in code, the OES_viewport_array is only enabled when gen >= 8
set_viewport_no_notify
/* The GL_ARB_viewport_array spec says:
*
* "The location of the viewport's bottom-left corner, given by (x,y),
* are clamped to be within the implementation-dependent viewport
* bounds range. The viewport bounds range [min, max] tuple may be
* determined by calling GetFloatv with the symbolic constant
* VIEWPORT_BOUNDS_RANGE (see section 6.1)."
*/
if (ctx->Extensions.ARB_viewport_array ||
(ctx->Extensions.OES_viewport_array &&
_mesa_is_gles31(ctx))) {
x = CLAMP(x,
ctx->Const.ViewportBounds.Min, ctx->Const.ViewportBounds.Max);
y = CLAMP(y,
ctx->Const.ViewportBounds.Min, ctx->Const.ViewportBounds.Max);
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>