egl/dri2: set max values for pbuffer width and height
authorTapani Pälli <tapani.palli@intel.com>
Thu, 20 Oct 2016 07:33:33 +0000 (10:33 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 25 Oct 2016 04:24:11 +0000 (07:24 +0300)
commitb91e1e38e87b372d409469dfe00ace76c8febd34
treed07558899fcef5a9099065a882d145d255c07262
parent76c3f1bbbe4430da6c55b184266f7d0133f66084
egl/dri2: set max values for pbuffer width and height

While these max values were previously fixed for pbuffer creation, this
change makes also eglGetConfigAttrib() return correct values.

Fixes following dEQP tests:

   dEQP-EGL.functional.create_surface.pbuffer.rgb888_no_depth_no_stencil
   dEQP-EGL.functional.create_surface.pbuffer.rgb888_depth_stencil
   dEQP-EGL.functional.create_surface.pbuffer.rgba8888_no_depth_no_stencil
   dEQP-EGL.functional.create_surface.pbuffer.rgba8888_depth_stencil

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98326
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
src/egl/drivers/dri2/egl_dri2.c