i965: Enable smooth points when multisampling without point sprites.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Feb 2014 03:37:08 +0000 (19:37 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 19 Feb 2014 23:43:22 +0000 (15:43 -0800)
commit51145a24f7938a4d5575d8d9aa4f8afa369d836b
tree7c1590400c96a9deceb9af6c5b2c25da386e2806
parenta3d70580b52c37036e162a976efd9e038615e6d7
i965: Enable smooth points when multisampling without point sprites.

According to the "Point Multisample Rasterization" of the OpenGL
specification (3.0 or later), smooth points are supposed to be enabled
implicitly when multisampling, regardless of the GL_POINT_SMOOTH flag.

However, if GL_POINT_SPRITE is enabled, you get square points no matter
what.  Core contexts always enable point sprites, so this effectively
makes smooth points go away, even in the case of multisampling.

Fixes Piglit's EXT_framebuffer_multisample/point-smooth tests.
(Yes, that's right folks, we actually have Piglit tests for this.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/gen8_sf_state.c