i965/msaa: Allow GL_SAMPLES to be set to 1 prior to Gen6.
authorPaul Berry <stereotype441@gmail.com>
Fri, 27 Jul 2012 01:02:20 +0000 (18:02 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 1 Aug 2012 19:45:20 +0000 (12:45 -0700)
commitc18806cebf107d03751b11cc8866062c3822a56f
treec8e15747ad6ba546b6cd6c9a030d97f62461d445
parent97fc89c6cbaa3b5ef7f678d2dc2c7d5bbba05315
i965/msaa: Allow GL_SAMPLES to be set to 1 prior to Gen6.

This patch allows GL_SAMPLES to be set to either 0 or 1 on i965
platforms that don't support MSAA (those prior to Gen6).  Setting
GL_SAMPLES=1 has the same effect as setting it to 0 on these platforms
(because MSAA is unsupported), but is distinguishable via the GL API.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50165

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_fbo.c