i915: fix wrong rendering of gl_PointSize on Pineview
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Thu, 23 Feb 2012 06:19:19 +0000 (14:19 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 5 Mar 2012 02:42:58 +0000 (10:42 +0800)
commit058fc6521e3bc483bc948cc90dc5ee3b08d6ec64
treeaa8a5eb8d0543c32175580256006257e14ca53ad
parent9962280c332aba4b945b73ae19862041a7053a71
i915: fix wrong rendering of gl_PointSize on Pineview

The current code would ignore the point size specified by gl_PointSize
builtin variable in vertex shader on Pineview. This patch servers as
fixing that.

This patch fixes the following issues on Pineview:
webglc: https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/rendering/point-size.html
piglit: glsl-vs-point-size

NOTE: This is a candidate for stable release branches.

v2: pick Eric's nice tip for fixing this issue in hardware rendering.
v3: the last arg of EMIT_ATTR specify the size in _byte_. (Eric)

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/i915_fragprog.c