diff options
author | Anuj Phogat <anuj.phogat@gmail.com> | 2016-09-27 12:28:39 -0700 |
---|---|---|
committer | Anuj Phogat <anuj.phogat@gmail.com> | 2016-10-04 13:20:34 -0700 |
commit | cd69d3f929692c60ebed8fafdf65863d68e03052 (patch) | |
tree | 3289b28ef14f476fd7ac5ad62cb4952d25620258 /src/mesa/drivers/dri/i965/intel_extensions.c | |
parent | 239ff641739dc9d6ce210ad3abb37b7e01171375 (diff) | |
download | external_mesa3d-cd69d3f929692c60ebed8fafdf65863d68e03052.tar.gz external_mesa3d-cd69d3f929692c60ebed8fafdf65863d68e03052.tar.bz2 external_mesa3d-cd69d3f929692c60ebed8fafdf65863d68e03052.zip |
i965/gen8+: Enable GL_OES_viewport_array
This patch causes 2 regressions in khronos' gles cts tests
on various intel platforms.
Failing tests:
ES3-CTS.functional.state_query.integers.viewport_getinteger
ES3-CTS.functional.state_query.integers.viewport_getfloat
Here is an explanation of what's causing the failures:
CTS tests are not clamping the x, y location of the viewport's
bottom-left corner as recommended by ARB_viewport_array and
OES_viewport_array:
"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_OES"
Khronos CTS merge request to fix the test case:
https://gitlab.khronos.org/opengl/cts/merge_requests/399
V2: Initialize the relevant variables for GL_OES_viewport_array on gen8+
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_extensions.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 93eb966e00..53bd7cc673 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -404,6 +404,7 @@ intelInitExtensions(struct gl_context *ctx) ctx->Extensions.ARB_ES3_2_compatibility = true; ctx->Extensions.OES_geometry_shader = true; ctx->Extensions.OES_texture_cube_map_array = true; + ctx->Extensions.OES_viewport_array = true; } if (brw->gen >= 9) { |